-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 885 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
35
36
37
38
name: Tests
on: [push]
jobs:
pre-commit:
name: Run pre-commit on all files
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install package including dev dependencies using Poetry
run: make env-install
- name: Run pre-commit on all files
run: pre-commit run --all-files
pytest:
name: Run unit-tests using pytest
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install package including dev dependencies using Poetry
run: make env-install
- name: Run pytest tests
run: pytest tests