Skip to content

Commit

Permalink
Deeper fetch needed. Also updated action versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
neerdoc committed Feb 15, 2024
1 parent c3bcd94 commit b125387
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/change-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ jobs:
name: Change coverage
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: "3.11"
architecture: x64
Expand All @@ -30,7 +32,7 @@ jobs:
- name: Check system dependencies
run: make doctor

- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: .venv
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
Expand All @@ -41,6 +43,4 @@ jobs:
- 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 ' ')
8 changes: 4 additions & 4 deletions .github/workflows/execute-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Change path on Windows
if: ${{ inputs.os == 'windows-latest' }}
Expand All @@ -38,7 +38,7 @@ jobs:
mkdir -p ${{ inputs.workpath }}
mv $env:GITHUB_WORKSPACE\* ${{ inputs.workpath }}\ -Force
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Check system dependencies
run: make doctor

- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: .venv
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
Expand All @@ -60,7 +60,7 @@ jobs:
# very slow. Especially any client/server tests seems to be problematic.
# This is a simple attempt to re-run the tests up to three times if they
# fail. Does not add any execution time if successful.
- uses: Wandalen/wretry.action@v1.0.20
- uses: Wandalen/wretry.action@v1.4.4
name: Run tests
with:
command: make test
Expand Down

0 comments on commit b125387

Please sign in to comment.