Skip to content

Commit 5d2d1a8

Browse files
authored
Reenable testing with different Python versions. (#51)
1 parent 412add8 commit 5d2d1a8

File tree

4 files changed

+5727
-1189
lines changed

4 files changed

+5727
-1189
lines changed

.github/workflows/main.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@ jobs:
1717

1818
run-tests:
1919

20-
name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }}
20+
name: Run tests for ${{ matrix.os }} on ${{ matrix.environment }}
2121
runs-on: ${{ matrix.os }}
2222

2323
strategy:
2424
fail-fast: false
2525
matrix:
2626
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
27-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
27+
environment: ['py38', 'py39', 'py310', 'py311', 'py312']
2828

2929
steps:
3030
- uses: actions/checkout@v4
3131
- uses: prefix-dev/[email protected]
3232
with:
3333
pixi-version: v0.20.1
3434
cache: true
35-
environments: test
35+
environments: ${{ matrix.environment }}
3636

3737
# Unit, integration, and end-to-end tests.
3838

3939
- name: Run unit tests and doctests.
4040
shell: bash -l {0}
41-
run: pixi run -e test pytest -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
41+
run: pixi run -e ${{ matrix.environment }} test -m "unit or (not integration and not end_to_end)" --cov-report=xml -n auto
4242

4343
- name: Upload unit test coverage reports to Codecov with GitHub Action
4444
uses: codecov/codecov-action@v4
@@ -47,7 +47,7 @@ jobs:
4747

4848
- name: Run end-to-end tests.
4949
shell: bash -l {0}
50-
run: pixi run -e test pytest -m end_to_end --cov=./ --cov-report=xml -n auto
50+
run: pixi run -e ${{ matrix.environment }} test -m end_to_end --cov-report=xml -n auto
5151

5252
- name: Upload end_to_end test coverage reports to Codecov with GitHub Action
5353
uses: codecov/codecov-action@v4

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask-r) and
99

1010
- {pull}`50` uses pixi to install R and uses uuid4 to generate more robust file names
1111
for serialized arguments.
12+
- {pull}`51` reenables testing with different Python versions.
1213

1314
## 0.4.1 - 2024-04-20
1415

0 commit comments

Comments
 (0)