diff options
| author | J08nY | 2025-07-16 10:42:47 +0200 |
|---|---|---|
| committer | J08nY | 2025-07-16 10:42:47 +0200 |
| commit | 8b68ed8c920635a8f428bf2fd04f6637df24b767 (patch) | |
| tree | 4e8b02858405a9b14ff715b9a7c99a0d861f9247 /.github/workflows | |
| parent | cbdf2e02e06b275d07797152bc9d9194348cac43 (diff) | |
| download | sec-certs-8b68ed8c920635a8f428bf2fd04f6637df24b767.tar.gz sec-certs-8b68ed8c920635a8f428bf2fd04f6637df24b767.tar.zst sec-certs-8b68ed8c920635a8f428bf2fd04f6637df24b767.zip | |
Run CI on various Python versions.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/tests.yml | 14 |
1 files 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 }} |
