aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJán Jančár2025-07-16 11:18:36 +0200
committerGitHub2025-07-16 11:18:36 +0200
commitbce2ef9d06f52a98eb543d0760e0f9cd5108bed6 (patch)
treed3d4b9b41a59f73fc634b6227d748eaf8ead9966
parentcbdf2e02e06b275d07797152bc9d9194348cac43 (diff)
parentc695132f7da94e46b8d6a0330fe2c47157d630f5 (diff)
downloadsec-certs-bce2ef9d06f52a98eb543d0760e0f9cd5108bed6.tar.gz
sec-certs-bce2ef9d06f52a98eb543d0760e0f9cd5108bed6.tar.zst
sec-certs-bce2ef9d06f52a98eb543d0760e0f9cd5108bed6.zip
Merge pull request #511 from crocs-muni/feat/ci-matrix
Run CI on various Python versions.
-rw-r--r--.github/workflows/tests.yml15
1 files changed, 11 insertions, 4 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 69e173b1..a7ee60a2 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -8,7 +8,12 @@ env:
jobs:
test:
runs-on: ubuntu-22.04
+ 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 }}
steps:
- name: apt-get update
@@ -16,10 +21,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 +44,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 }}