-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (40 loc) · 1.17 KB
/
testing.yml
File metadata and controls
49 lines (40 loc) · 1.17 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
name: Run Tests
on:
# release:
# types: [created]
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
name: "Package stability ${{ matrix.stability }}"
runs-on: ubuntu-latest
environment: dev
permissions:
contents: read
strategy:
matrix:
python-version: [ '3.11', '3.12', '3.13' ]
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- name: Checkout repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5
with:
allow-prereleases: ${{ matrix.python-version == '3.13' }}
python-version: ${{ matrix.python-version }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ".[dev]"
- name: Run Python tests
run: pytest