-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (34 loc) · 854 Bytes
/
pytest.yml
File metadata and controls
42 lines (34 loc) · 854 Bytes
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
---
name: pytest
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Set up python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: ./.github/actions/setup-poetry
with:
groups: main,test
python-version: ${{ matrix.python-version }}
- name: Print versions
run: |
python --version
poetry --version
- name: Test with pytest
working-directory: tests
run: poetry run pytest