-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (50 loc) · 1.61 KB
/
test.yaml
File metadata and controls
54 lines (50 loc) · 1.61 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
46
47
48
49
50
51
52
53
54
# NOTE I'm borrowing from pycares so that we don't have to reinvent the wheel.
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: Test on ${{ matrix.os }} / Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, windows-11-arm, macos-14, macos-latest]
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t']
exclude:
- os: windows-11-arm # setup-python action only supports 3.11+
python-version: '3.9'
- os: windows-11-arm # setup-python action only supports 3.11+
python-version: '3.10'
- os: windows-11-arm
python-version: '3.14t'
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Setup Python
uses: actions/setup-python@v6
with:
check-latest: true
python-version: ${{ matrix.python-version }}
- name: Install dependencies
# I did however need to change how tests works since I am writing a better verison of pycares's tests
# since I wanted to move to pytest - Vizonex
run: python -m pip install -r requirements/test.txt
- name: Build package
run: python -m pip install .
- name: Run PyTests
env:
COLOR: yes
PIP_USER: 1
# Run at higher verbosity (This is a newer library after all...)
run: pytest tests -vv
shell: bash