-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 940 Bytes
/
pytest.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: Tests
# run tests whenever main gets a commit or PR
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest] # ubuntu is the only distro available 🙃
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set up go # for testing + installing siegfried-based PRONOM detection
uses: actions/setup-go@v5
- name: Install mdto.py and test dependencies
run: |
go install github.com/richardlehane/siegfried/cmd/sf@latest
sf -update
pip install pytest # pytest ≠ project dep, so add it here
pip install .
- name: Run tests
run: pytest