Skip to content

Commit

Permalink
Attempt to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Monarda committed Sep 12, 2024
1 parent 202b7dc commit 34a22e7
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,34 @@ jobs:
- run: |
ruff check --no-fix
ruff format --diff
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: >-
python -m pip install .[test]
- name: Run tests
run: >-
python -m coverage run --source=. -m unittest discover tests/
coverage report -m
coverage xml
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: coverage.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

build:
name: Build distribution 📦
needs:
Expand Down

0 comments on commit 34a22e7

Please sign in to comment.