-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
5 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 |
---|---|---|
|
@@ -5,23 +5,28 @@ name: "🐍 Lint and Test" | |
# events but only for the master branch | ||
on: | ||
pull_request: | ||
branches: [main] | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "docs/**" | ||
push: | ||
branches: [main] | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "docs/**" | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
lintest: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
|
@@ -57,3 +62,10 @@ jobs: | |
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
env_vars: PYTHON | ||
flags: unittests | ||
name: Code Coverage for unittests on python-${{ matrix.python-version }}] | ||
env: | ||
PYTHON: ${{ matrix.python-version }} | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |