-
-
Notifications
You must be signed in to change notification settings - Fork 314
40 lines (36 loc) · 997 Bytes
/
scheduled-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Scheduled Tests
on:
schedule:
- cron: "12 12 12 * *" # run once a month on the 12th at 12:12
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FORCE_COLOR: "1"
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_NO_PYTHON_VERSION_WARNING: "1"
jobs:
test-api:
name: Run tests with deleted requests cassettes
if: |
(github.repository == 'Diaoul/subliminal' && github.event_name == 'schedule')
|| github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: install
run: |
python -Im pip install -U pip
python -Im pip install -e ".[tests]"
- name: remove cassettes
run: |
rm -rf tests/cassettes
- name: run test
run: |
pytest