Skip to content

Commit 9e57da6

Browse files
committed
Add CI workflow running pytest
1 parent f52b428 commit 9e57da6

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
8+
jobs:
9+
tests:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repository
13+
uses: actions/checkout@v4
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.10'
18+
- name: Install Poetry
19+
uses: snok/install-poetry@v1
20+
with:
21+
version: 1.8.3
22+
virtualenvs-create: false
23+
- name: Install dependencies
24+
run: poetry install
25+
- name: Run tests
26+
run: pytest

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ line-length = 120
4141
[tool.isort]
4242
line_length = 120
4343
profile = "black"
44+
[tool.pytest.ini_options]
45+
pythonpath = ["."]
46+
4447
[build-system]
4548
requires = ["poetry-core>=1.0.8"]
4649
build-backend = "poetry.core.masonry.api"
4750
[project.urls]
4851
Homepage = "https://github.com/Bl3f/yato"
4952
Repository = "https://github.com/Bl3f/yato"
50-
Issues = "https://github.com/Bl3f/yato/issues"
53+
Issues = "https://github.com/Bl3f/yato/issues"

0 commit comments

Comments
 (0)