-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
41 lines (37 loc) · 1.1 KB
/
test-suite.yml
File metadata and controls
41 lines (37 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
40
41
---
name: Test Suite
on:
push:
branches: ["master"]
pull_request:
branches: ["master", "version-*"]
jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: "actions/checkout@v5"
- uses: "actions/setup-python@v6"
with:
python-version: "${{ matrix.python-version }}"
allow-prereleases: true
- name: "Install dependencies"
if: matrix.python-version != '3.14'
run: "scripts/install"
- if: matrix.python-version == '3.14'
run: |
pip install -r requirements.txt
pip install --editable .[cli,http2,socks]
- name: "Run linting checks"
run: "scripts/check"
- name: "Build package & docs"
run: "scripts/build"
- name: "Run tests"
run: "scripts/test"
timeout-minutes: 10 # TODO(@cclauss): Remove once Python 3.14 tests are passing.
- name: "Enforce coverage"
run: "scripts/coverage"