-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (41 loc) · 1.17 KB
/
run_tests.yml
File metadata and controls
46 lines (41 loc) · 1.17 KB
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
name: Build
on:
push:
branches:
- ci_test
- main
- winworkflow
tags:
- 'v*'
jobs:
run_pytest:
name: Run pytest on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-latest, windows-11-arm]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
exclude:
- os: windows-11-arm
python-version: "3.10"
- os: windows-11-arm
python-version: "3.9"
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Install package
env:
VERBOSE: '1'
run: |
python -m pip install -v .[testing]
- name: Test with pytest
working-directory: ./tests/Python
run: |
python -m pytest .