Skip to content

Commit

Permalink
Add pytest to circleci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
not7cd committed Jan 2, 2025
1 parent 49b7261 commit 1faccdc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint poetry
poetry install --with dev
- name: Run tests
run: poetry run pytest
- run: docker build . -t hspsh/whohacks
- run: echo "::set-output name=TAG::$(git describe --tags 2>/dev/null)"
name: Check if commit is tagged
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ psycopg2-binary = "^2.9.9"
sqlalchemy = "^2.0.36"

[tool.poetry.dev-dependencies]
pytest = "^7.4.3"

[build-system]
requires = ["poetry>=0.12"]
Expand Down

0 comments on commit 1faccdc

Please sign in to comment.