Skip to content

Commit

Permalink
Update pytest-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
will-roscoe authored Dec 11, 2023
1 parent 1791b9d commit 3dfab22
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/pytest-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
module-name: ['base', 'core', 'tools']
python-version: ["3.8","3.9","3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -30,23 +29,18 @@ jobs:
pip install -r requirements.txt
- with:
test-file: ${{ matr.module-name }}
- name: Pytest -> ${{ test-file }}
- name: Pytest run
run: |
pytest -v --disable-warnings -l **/tests/test_${{ test-file }}.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
pytest -v --disable-warnings -l **/tests/test_*.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
- name: Upload pytest test results
uses: actions/upload-artifact@v3
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}





build-linter:
name: Pylint
name: Ruff
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -69,5 +63,6 @@ jobs:
pip install ruff
ruff --output-format=github .
continue-on-error: true

0 comments on commit 3dfab22

Please sign in to comment.