-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (38 loc) · 959 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
42
43
44
45
46
47
name: pytest
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
workflow_call:
permissions:
contents: read
jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- windows-latest
- macos-14
python-ver:
- 3.11
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-ver }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-ver }}
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: poetry install
- name: Build cython code
run: pushd src/cis_decoder/; poetry run python setup.py build_ext --inplace; popd;
- name: Ruff linting
run: poetry run ruff src/
- name: Test with pytest
run: poetry run pytest