-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 864 Bytes
/
tests.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
name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# Note: 3.7.x gets stuck pip installing in the CI for some reason.
# Python 3.7 should still be considered 'supported', despite the CI not running it.
# This should be fixed at some point.
python: [3.8.x, 3.9.x, 3.10.x]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libpq-dev
chmod +x ./run
./run setup
- name: Lint
run: source venv/bin/activate && ./run lint
- name: Test
run: source venv/bin/activate && ./run test