Skip to content

Commit

Permalink
ci: cover all tests with guardian
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Feb 2, 2024
1 parent 3dbc43f commit 5aa5ce7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/checkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,16 @@ on:

jobs:
checkdocs:
runs-on: ${{ matrix.os }}
environment:
name: checkdocs
strategy:
fail-fast: false
matrix:
python-version: ['3.10']
os: [ubuntu-latest]

runs-on: "ubuntu-latest"
steps:
- uses: actions/[email protected]

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}

python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e . -r tests/requirements.txt
- name: Check Docs
run: |
python setup.py checkdocs
run: python setup.py checkdocs
16 changes: 15 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- cron: '0 0 * * 0'

jobs:
test:
pytester:
runs-on: ${{ matrix.os }}
environment:
name: test
Expand Down Expand Up @@ -48,3 +48,17 @@ jobs:
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true

testing-guardian:
runs-on: ubuntu-latest
needs: pytester
if: always()
steps:
- run: echo "${{ needs.pytester.result }}"
- name: failing...
if: needs.pytester.result == 'failure'
run: exit 1
- name: cancelled or skipped...
if: contains(fromJSON('["cancelled", "skipped"]'), needs.pytester.result)
timeout-minutes: 1
run: sleep 90

0 comments on commit 5aa5ce7

Please sign in to comment.