-
Notifications
You must be signed in to change notification settings - Fork 8
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
7 changed files
with
101 additions
and
148 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Run Docs tests | ||
description: 'Check if documentation is up to date.' | ||
|
||
inputs: | ||
python_version: | ||
description: A version of Python to install | ||
type: string | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python_version }} | ||
cache: pip | ||
|
||
- name: install Poetry | ||
uses: Gr1N/setup-poetry@v8 | ||
|
||
- name: create Poetry venv | ||
shell: bash | ||
run: | | ||
poetry env use ${{ inputs.python_version }} | ||
poetry install | ||
- name: generate API docs | ||
shell: bash | ||
run: poetry run make documentation | ||
|
||
- name: check if documentation needs updating | ||
shell: bash | ||
run: | | ||
if [ "$(git status --porcelain)" ]; then | ||
git status | ||
exit 1 | ||
else | ||
exit 0 | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Run Unit tests | ||
description: 'Runs Unit tests.' | ||
|
||
inputs: | ||
python_version: | ||
description: A version of Python to install | ||
type: string | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python_version }} | ||
cache: pip | ||
|
||
- name: install Poetry | ||
uses: Gr1N/setup-poetry@v8 | ||
|
||
- name: create Poetry venv | ||
shell: bash | ||
run: | | ||
poetry env use ${{ inputs.python_version }} | ||
poetry install | ||
- name: run unit tests and coverage | ||
shell: bash | ||
run: poetry run make test_coverage | ||
|
||
# requires pull-requests: write permissions when triggered from PRs | ||
- name: Get coverage | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: orgoro/[email protected] | ||
with: | ||
coverageFile: coverage.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
thresholdAll: 0.95 | ||
thresholdNew: 0.90 | ||
thresholdModified: 0.95 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.