-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (40 loc) · 1.23 KB
/
tests.yaml
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
46
47
48
name: tests
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, macos-latest, windows-latest]
exclude:
- os: macos-latest # Segmentation fault on github actions that we can not reproduce in the wild
python-version: '3.8'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# Temporary bugfix see https://github.com/pre-commit/pre-commit/issues/2178
- name: Pin virtualenv version
run: pip install virtualenv==20.10.0
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.3.2
- name: Run poetry install
run: poetry install
- name: Run pytest
timeout-minutes: 15
run: poetry run pytest -m "all_examples or runtime or neps_api or summary_csv"