-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (34 loc) · 898 Bytes
/
ci.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: CI
on: [push,pull_request]
jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install and run pre-commit hooks
run: |
pip install pre-commit
pre-commit run --all-files
run-tests:
runs-on: ubuntu-latest
needs: check-formatting
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Setup environment
run: |
cp samples/.env.dev .env
mkdir data
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: python -m unittest -v