Skip to content

Commit a73f855

Browse files
committed
Set up Github workflow
1 parent b6a37b0 commit a73f855

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: genfond
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python: ["3.11", "3.13"]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Setup Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: ${{ matrix.python }}
19+
- name: Install system packages
20+
run: sudo apt-get install libgraphviz-dev
21+
- name: Install tox
22+
run: pip install tox
23+
- name: Run tox
24+
# Run tox using the version of Python in `PATH`
25+
run: tox -e py

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ profile = "black"
4545
line-length = 119
4646

4747
[build-system]
48-
requires = ["poetry-core"]
48+
requires = ["poetry-core>=1.0.0"]
4949
build-backend = "poetry.core.masonry.api"

tox.ini

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
[testenv]
44
pass_env = DBUS_SESSION_BUS_ADDRESS
5+
skip_install = true
56
allowlist_externals = poetry
67
commands_pre =
78
poetry install --no-root --sync
89
commands =
9-
poetry run pytest tests/ --import-mode importlib
10-
poetry run mypy genfond
11-
poetry run isort --check genfond tests
12-
poetry run black --check genfond tests
10+
pytest tests/ --import-mode importlib
11+
mypy genfond
12+
isort --check genfond tests
13+
black --check genfond tests

0 commit comments

Comments
 (0)