-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1022 Bytes
/
tests.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
name: tests
on:
push:
branches: [ "main", "dev" ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "nogil-3.9" ]
steps:
- uses: actions/checkout@v3
- name: set up python ${{ matrix.python-version }}
uses: dpdani/setup-python@nogil
with:
python-version: ${{ matrix.python-version }}
- name: check nogil
run: |
python -c "import sys; print(sys.flags.nogil);"
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: test with pytest
run: |
pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml
- name: upload pytest test results
uses: actions/upload-artifact@v3
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
if: ${{ always() }}