Debian Codegraph @

.github/workflows/release_tests.yml

raw
1 name: test release tool
2
3 on:
4 push:
5 paths:
6 - .github/workflows/release_tests.yml
7 - scripts/release.py
8 - scripts/release_tests.py
9 pull_request:
10 paths:
11 - .github/workflows/release_tests.yml
12 - scripts/release.py
13 - scripts/release_tests.py
14
15 permissions: {}
16
17 jobs:
18 test-release-tool:
19 # We want to run on external PRs, but not on our own internal PRs as they'll be run
20 # by the push to the branch. Without this if check, checks are duplicated since
21 # internal PRs match both the push and pull_request events.
22 if:
23 github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
24 github.repository
25
26 runs-on: ${{ matrix.os }}
27 strategy:
28 matrix:
29 python-version: ["3.12", "3.13", "3.14", "3.15"]
30 os: [macOS-latest, ubuntu-latest, windows-latest]
31
32 steps:
33 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34 with:
35 # Give us all history, branches and tags
36 fetch-depth: 0
37 persist-credentials: false
38
39 - name: Set up Python ${{ matrix.python-version }}
40 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
41 with:
42 python-version: ${{ matrix.python-version }}
43 allow-prereleases: true
44 pip-version: "25.3"
45 pip-install: --group coverage
46
47 - name: Print Python Version
48 run: python --version --version && which python
49
50 - name: Print Pip Version
51 run: pip --version && which pip
52
53 - name: Print Git Version
54 run: git --version && which git
55
56 - name: Run unit tests via coverage + print report
57 run: |
58 coverage run scripts/release_tests.py
59 coverage report --show-missing