-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (34 loc) · 943 Bytes
/
main.yml
File metadata and controls
38 lines (34 loc) · 943 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
name: genfond
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.14"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install system packages
run: sudo apt-get update && sudo apt-get install libgraphviz-dev libboost-dev pybind11-dev
- name: Install poetry
run: pip install poetry
- name: Install packages with poetry
run: poetry install --no-root --with=dev
- name: Run tests
run: poetry run pytest
- name: Check imports
run: poetry run isort --check genfond tests
- name: Check formatting
run: poetry run black --check genfond tests
- name: Check types
run: poetry run mypy genfond tests