Skip to content

Commit bf1805c

Browse files
committed
build and tests run in separate workflows. Only last three Python versions are used.
1 parent d4c05b1 commit bf1805c

2 files changed

Lines changed: 36 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
jobs:
11+
12+
tests:
13+
name: Run template tests
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: true
17+
matrix:
18+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
19+
python-version: ['3.10', '3.11', '3.12']
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Python info
27+
shell: bash -e {0}
28+
run: |
29+
which python
30+
python --version
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip setuptools
34+
python -m pip install .[dev]

.github/workflows/tests.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
name: Run template tests
1414
runs-on: ${{ matrix.os }}
1515
strategy:
16-
fail-fast: false
16+
fail-fast: true
1717
matrix:
1818
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
19-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
19+
python-version: ['3.10', '3.11', '3.12']
2020
steps:
2121
- uses: actions/checkout@v4
2222
- name: Set up Python ${{ matrix.python-version }}
@@ -28,10 +28,6 @@ jobs:
2828
run: |
2929
which python
3030
python --version
31-
- name: Install dependencies
32-
run: |
33-
python -m pip install --upgrade pip setuptools
34-
python -m pip install .[dev]
3531
- name: Run pytest
3632
run: |
3733
python -m pytest -v --durations=0

0 commit comments

Comments
 (0)