-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 914 Bytes
/
test312.yml
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
name: Tests Python 3.12
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Cache packages
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-pypoetry312-${{ hashFiles('poetry.lock') }}
restore-keys: |
${{ runner.os }}-pypoetry312-
- name: Install application dependencies
run: |
python -m pip install --upgrade pip setuptools wheel poetry
poetry env use 3.12
poetry install
- name: Run tests
run: |
make test
- name: Run linters
run: |
poetry run pre-commit run --all-files