-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 979 Bytes
/
code_testing.yml
File metadata and controls
43 lines (34 loc) · 979 Bytes
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
name: Code testing
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- name: Harden Runner
if: runner.os == 'Linux'
uses: step-security/harden-runner@v2.16.0
with:
egress-policy: audit
- uses: actions/checkout@v6.0.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry==2.1.3
- name: Install dependencies with Poetry
run: |
poetry install --all-extras --with dev
- name: Testing with pytest
run: poetry run pytest ./tests/