From 3dfab22bdd185c6ff3fa535c549c5cb190d33ca4 Mon Sep 17 00:00:00 2001 From: Will Roscoe Date: Mon, 11 Dec 2023 19:21:45 +0000 Subject: [PATCH] Update pytest-ci.yml --- .github/workflows/pytest-ci.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pytest-ci.yml b/.github/workflows/pytest-ci.yml index a53f30e..839d60a 100644 --- a/.github/workflows/pytest-ci.yml +++ b/.github/workflows/pytest-ci.yml @@ -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 }} @@ -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 @@ -69,5 +63,6 @@ jobs: pip install ruff ruff --output-format=github . continue-on-error: true +