-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #686 from doorstop-dev/release/3.0
Release v3.0
- Loading branch information
Showing
182 changed files
with
37,562 additions
and
3,046 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Execute tests | ||
on: | ||
workflow_call: | ||
inputs: | ||
basepath: | ||
required: false | ||
type: string | ||
os: | ||
required: true | ||
type: string | ||
workpath: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
change-coverage: | ||
runs-on: ubuntu-latest | ||
name: Change coverage | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
architecture: x64 | ||
|
||
- uses: Gr1N/setup-poetry@v8 | ||
|
||
- name: Check system dependencies | ||
run: make doctor | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: .venv | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} | ||
|
||
- name: Install project dependencies | ||
run: make install | ||
|
||
- name: Check coverage | ||
run: | | ||
TEST_INTEGRATION=true poetry run pytest doorstop --doctest-modules --cov=doorstop --cov-report=xml --cov-report=term-missing | ||
git fetch origin develop:develop | ||
# TEST_INTEGRATION=true poetry run diff-cover ./coverage.xml --fail-under=100 --compare-branch=develop | ||
TEST_INTEGRATION=true poetry run diff-cover ./coverage.xml --fail-under=100 --compare-branch=$(git for-each-ref --sort=-committerdate refs/heads/develop | cut -f 1 -d ' ') |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# expected stages: commit, commit-msg, manual, merge-commit, post-checkout, post-commit, post-merge, post-rewrite, prepare-commit-msg, push | ||
|
||
- id: check-doorstop-errors | ||
args: ["-W"] | ||
name: check for doorstop errors | ||
description: ensures the changes introduces no errors | ||
entry: doorstop | ||
language: python | ||
verbose: true | ||
pass_filenames: false | ||
stages: [commit, push, manual] | ||
|
||
- id: check-unreviewed-items | ||
name: ensure that all requirements are reviewed before being committed | ||
description: ensure that all documents/requirements are reviewed before being committed | ||
entry: git_hooks/check_unreviewed_requirements.sh | ||
language: script | ||
verbose: true | ||
pass_filenames: false | ||
stages: [merge-commit, manual] |
Oops, something went wrong.