From 8b68ed8c920635a8f428bf2fd04f6637df24b767 Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 16 Jul 2025 10:42:47 +0200 Subject: Run CI on various Python versions. --- .github/workflows/tests.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 69e173b1..fbfe4003 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,11 @@ env: jobs: test: runs-on: ubuntu-22.04 + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12"] env: + PYTHON: ${{ matrix.python-version }} SECCERTS_NVD_API_KEY: ${{ secrets.NVD_API_KEY }} steps: - name: apt-get update @@ -16,10 +20,10 @@ jobs: - name: Install Poppler run: sudo apt-get install -y build-essential libpoppler-cpp-dev pkg-config python3-dev - uses: actions/checkout@v4 - - name: Setup python + - name: Setup python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} cache: "pip" cache-dependency-path: | requirements/test_requirements.txt @@ -39,11 +43,13 @@ jobs: paths: junit.xml show: "fail, skip" - name: Code coverage upload + if: ${{ matrix.python-version == 3.10 }} uses: codecov/codecov-action@v4 with: + env_vars: PYTHON token: ${{ secrets.CODECOV_TOKEN }} - name: Upload test results to Codecov - if: ${{ !cancelled() }} + if: ${{ !cancelled() && matrix.python-version == 3.10 }} uses: codecov/test-results-action@v1 with: - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }} -- cgit v1.3.1 From c695132f7da94e46b8d6a0330fe2c47157d630f5 Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 16 Jul 2025 10:52:36 +0200 Subject: Continue on error in CI. --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fbfe4003..a7ee60a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,6 +11,7 @@ jobs: strategy: matrix: python-version: ["3.10", "3.11", "3.12"] + fail-fast: false env: PYTHON: ${{ matrix.python-version }} SECCERTS_NVD_API_KEY: ${{ secrets.NVD_API_KEY }} -- cgit v1.3.1