Skip to content

Commit a3ce9fb

Browse files
authored
Add workflow to test on schedule
1 parent 43d6ccf commit a3ce9fb

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test-latest.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test Latest
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# Weekly on Sunday
7+
- cron: '0 0 * * 0'
8+
9+
jobs:
10+
checks:
11+
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
12+
runs-on: ${{ matrix.runs-on }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: ["3.6", "3.10"]
17+
runs-on: [ubuntu-latest, macos-latest, windows-latest]
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install package
24+
run: python -m pip install .[test]
25+
- name: Configure token access
26+
run: |
27+
viresclient set_token "https://vires.services/ows" ${{ secrets.VIRES_TOKEN_SWARM }}
28+
viresclient set_default_server https://vires.services/ows
29+
- name: Test package
30+
run: python -m pytest -ra

0 commit comments

Comments
 (0)