-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (48 loc) · 1.37 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
name: Tests
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
branches:
- master
- '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { name: Linux, python: '3.11', os: ubuntu-latest }
- { name: Windows, python: '3.11', os: windows-latest }
- { name: Mac, python: '3.11', os: macos-latest }
- { name: '3.12', python: '3.12', os: ubuntu-latest }
- { name: '3.11', python: '3.11', os: ubuntu-latest }
- { name: '3.10', python: '3.10', os: ubuntu-latest }
- { name: '3.9', python: '3.9', os: ubuntu-latest }
- { name: 'PyPy', python: 'pypy-3.10', os: ubuntu-latest }
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements/tests.txt
python -m pip install -r requirements/build.txt
- name: Install package
run: |
flit install
- name: Test with pytest
run: |
pytest