-
Notifications
You must be signed in to change notification settings - Fork 11
33 lines (26 loc) · 890 Bytes
/
tests.yaml
File metadata and controls
33 lines (26 loc) · 890 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
name: Test the library
on:
pull_request:
types: [opened, synchronize, edited]
jobs:
run_tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- name: Checkout 🔁
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
- name: Set up Python ${{ matrix.python-version }} 🐍
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c #v6.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry and pre-commit 💈
run: pip install poetry==1.8.5 pre-commit
- name: Install dependencies 🛠
run: poetry install
- name: Run pre-commit 🤔
run: pre-commit run --all-files
- name: Run tests 🌈
run: poetry run invoke test