Skip to content

Reenable testing with different Python versions. #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@ jobs:

run-tests:

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

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

steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.20.1
cache: true
environments: test
environments: ${{ matrix.environment }}

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

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

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

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

- name: Upload end_to_end test coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v4
Expand Down
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask-r) and

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

## 0.4.1 - 2024-04-20

Expand Down
Loading
Loading