-
Notifications
You must be signed in to change notification settings - Fork 138
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
5 changed files
with
42 additions
and
22 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 |
---|---|---|
@@ -1,43 +1,61 @@ | ||
name: Python application | ||
name: Lint and test | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
linting: | ||
runs-on: ubuntu-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macost-latest] | ||
python-version: [3.7, 3.8, 3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Cancel previous workflows that are still running | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
- name: Checkout most recent commit | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version: 3.9 | ||
|
||
- name: List dependencies | ||
run: | | ||
pip freeze | ||
- name: Lint | ||
run: | | ||
pip install flake8, pydocstyle | ||
pip install 'flake8==5.0.3' 'pydocstyle==6.1.1' | ||
flake8 deepdow tests | ||
pydocstyle deepdow | ||
testing: | ||
needs: linting | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.7, 3.8, 3.9] | ||
steps: | ||
- name: Checkout most recent commit | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install .[docs,examples] | ||
pip install .[dev,docs,examples] | ||
- name: List dependencies | ||
run: | | ||
pip freeze | ||
- name: Run unittests | ||
run: | | ||
|
@@ -48,5 +66,5 @@ jobs: | |
pip install sphinx | ||
sphinx-build -b doctest docs/ temp_doctest | ||
- name: Run cover coverage | ||
uses: codecov/codecov-action@v1 | ||
- name: Run coverage | ||
uses: codecov/codecov-action@v3 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
comment: false |
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
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
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