forked from sigmavirus24/github3.py
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.66 KB
/
build.yml
File metadata and controls
56 lines (47 loc) · 1.66 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
55
56
name: Python tests
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- { VERSION: "3.9", TOXENV: "py39", ALLOW_FAILURE: false }
- { VERSION: "3.10", TOXENV: "py310", ALLOW_FAILURE: false }
- { VERSION: "3.11", TOXENV: "py311", ALLOW_FAILURE: false }
- { VERSION: "3.12", TOXENV: "py312", ALLOW_FAILURE: false }
- { VERSION: "3.13", TOXENV: "py313", ALLOW_FAILURE: false }
- {
VERSION: "3.13",
TOXENV: "flake8,doclint,docs,commitlint",
ALLOW_FAILURE: false,
}
- { VERSION: "3.13", TOXENV: "docstrings", ALLOW_FAILURE: true }
- { VERSION: "pypy3.9", TOXENV: "pypy", ALLOW_FAILURE: false }
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit
- name: Check out the repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.PYTHON.VERSION }}
- name: Upgrade pip
run: |
pip install pip
pip --version
- name: Install Tox
run: |
pip install tox
tox --version
- name: Run Tox
run: tox
env:
TOXENV: ${{ matrix.PYTHON.TOXENV }}
GH_RECORD_MODE: "none"
continue-on-error: ${{ matrix.PYTHON.ALLOW_FAILURE }}