-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test on both the oldest and latest supported Python versions.
- Loading branch information
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|