-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (36 loc) · 1.1 KB
/
Copy pathtests.yml
File metadata and controls
39 lines (36 loc) · 1.1 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
name: tests
on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- "v[0-9]+*"
workflow_dispatch:
permissions:
contents: read
jobs:
# The package advertises Python >=3.8, so every advertised version is tested.
# PEP 604 syntax is only legal at runtime on 3.10+, which is why the modules
# carrying annotations import `from __future__ import annotations`; this
# matrix is what keeps that from silently regressing.
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install --upgrade pip
- run: pip install -e . pytest
- run: python -c "import wavespeed; print(wavespeed.__version__)"
- run: python -m pytest -q