-
Notifications
You must be signed in to change notification settings - Fork 47
41 lines (41 loc) · 1.13 KB
/
test_pull_request.yml
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
41
name: Test pull request
on: pull_request
jobs:
tox:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
# Pinned to ubuntu-20.04 as that is the last version to include Python 3.6 support.
os: [ubuntu-20.04]
python: ['3.8', '3.9', '3.10']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- run: pip install --upgrade pip
- run: sudo apt-get install graphviz graphviz-dev
- run: pip install tox
- run: tox -e py
test-postgres:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- run: sudo apt-get install graphviz graphviz-dev
- run: make test-postgres
lint:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- run: sudo apt-get install graphviz graphviz-dev
- run: make lint