-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (37 loc) · 962 Bytes
/
test.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
name: Test
on:
push:
pull_request:
schedule:
- cron: '30 20 * * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.11'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip install --upgrade pip
- run: pip install -r requirements.txt -r dev-requirements.txt
- run: make check
prod-requirements:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.11'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip install --upgrade pip
# only install prod requirements
- run: pip install -r requirements.txt
# check that app.py runs without crashing on a missing import
- run: python app.py