generated from alunduil/template.py
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.23 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
43
44
45
# This workflow runs pytest against the repository.
#
# You can adjust the behavior by modifying this file.
name: Run pytest
on: [push, pull_request]
permissions:
contents: read
jobs:
pytest:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
python-version:
- "3.9" # EOL 2025-10
- "3.10" # EOL 2026-10
- "3.11" # EOL 2027-10
- "3.12" # EOL 2028-10
experimental: [false]
include:
- python-version: 3.x
experimental: true
steps:
- uses: actions/checkout@v3
- name: install poetry
run: pipx install poetry
- name: setup python-${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: poetry install
run: poetry install
- name: poetry run pytest
run: |
poetry run pytest
- name: poetry run coveralls
if: matrix.python-version == '3.x'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
poetry run coveralls --service=github || poetry run coveralls --service=github-actions