Skip to content

Commit

Permalink
add monthly API tests with new cassettes
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Jun 19, 2024
1 parent 169f419 commit f75e1d1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ concurrency:
jobs:
test:
name: Test
if: github.event_name != 'schedule'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -52,8 +53,29 @@ jobs:
fail_ci_if_error: true
coveralls-finish:
needs: test
if: github.event_name != 'schedule'
runs-on: ubuntu-latest
steps:
- uses: coverallsapp/[email protected]
with:
parallel-finished: true

test-api:
name: Test API
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: install
run: |
python -m pip install -U pip
python -m pip install -e ".[test]"
- name: remove cassettes
run: |
rm -rf tests/cassettes
- name: run test
run: |
pytest

0 comments on commit f75e1d1

Please sign in to comment.