From e5cecfadd7bb020c3880790f27d0dd99cda8c4c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= Date: Sat, 6 Jul 2024 10:51:10 +0000 Subject: [PATCH] Test on both the oldest and latest supported Python versions. --- .github/workflows/run-tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 98065f4..11e32bf 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -8,6 +8,9 @@ on: jobs: run-tests: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.x'] steps: - name: Checkout @@ -16,6 +19,11 @@ jobs: - name: Install dependencies run: pip3 install pylint mypy coverage + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Run linters run: | pylint --errors-only full_offline_backup_for_todoist @@ -25,6 +33,7 @@ jobs: run: coverage run -m unittest && coverage lcov - name: Upload coverage report + if: ${{ matrix.python-version == '3.x' }} uses: coverallsapp/github-action@v2.3.0 with: github-token: ${{ secrets.GITHUB_TOKEN }}