-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.17 KB
/
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
name: Run Python tests
on: [push]
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
# check-out repo and set-up python
- uses: szenius/set-timezone@v1.2
with:
timezoneLinux: "Europe/Berlin"
- name: Check out repository
uses: actions/checkout@v3
- name: Set up python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# install & configure poetry
- name: Poetry & environment setup
uses: snok/install-poetry@v1.3.4
with:
virtualenvs-create: true
virtualenvs-in-project: true
- run: poetry install --no-interaction --all-extras
- run: poetry shell
- run: pip install pytest-md pytest-emoji
# test!
- name: Test Python ${{ matrix.python-version }}
uses: pavelzw/pytest-action@v2.2.0
with:
verbose: true
emoji: true
job-summary: true
click-to-expand: true
report-title: 'Byron Test Report'