-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.08 KB
/
Copy pathrelease-gate.yml
File metadata and controls
38 lines (35 loc) · 1.08 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
name: release-gate
on:
push:
pull_request:
jobs:
source-suite:
name: source suite (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Declared minimum and one current Python supported by the project.
python-version: ["3.10", "3.13"]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install package and test extras
run: python -m pip install -e '.[test]'
- name: Run portable source suite
run: python -m pytest -q
installed-artifact:
name: installed artifact gate (Python 3.13)
runs-on: ubuntu-latest
needs: source-suite
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install build frontend
run: python -m pip install build
- name: Run installed-artifact release gate
run: python scripts/release_gate.py --checkout "$GITHUB_WORKSPACE"