Skip to content

Commit

Permalink
feat: add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Snoopy1866 committed Sep 10, 2024
1 parent de4dbf3 commit 21f9ef6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test

on:
push:
branches:
- "**"

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: install dependencies
run: pip install -r requirements-dev.txt
- name: run tests
run: pytest
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ addopts = "-ra -q"
testpaths = [
"tests"
]
pythonpath = ["src"]

# black configuration
[tool.black]
Expand Down

0 comments on commit 21f9ef6

Please sign in to comment.