Skip to content

Commit a450e13

Browse files
committed
GH actions
1 parent d9dc193 commit a450e13

2 files changed

Lines changed: 44 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test-py314:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Python 3.14
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.14'
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
python -m pip install -e . "pytest<9"
23+
24+
- name: Run tests
25+
run: pytest -q
26+
27+
test-py36:
28+
runs-on: ubuntu-latest
29+
container:
30+
image: python:3.6-bullseye
31+
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
36+
- name: Install dependencies
37+
run: |
38+
python -m pip install --upgrade pip
39+
python -m pip install -e . "pytest<8"
40+
41+
- name: Run tests
42+
run: pytest -q

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
def pytest_collection_modifyitems(config, items):
1414
if not HAS_TSTRINGS:
15-
marker = pytest.mark.skip(reason='no t-strings')
15+
marker = pytest.mark.skip(reason='doctests require t-strings')
1616
for it in items:
17-
if it.nodeid.startswith('README.md'):
17+
if it.__class__.__name__ == 'DoctestItem':
1818
it.add_marker(marker)
1919

2020

0 commit comments

Comments
 (0)