Skip to content

Commit

Permalink
Add github action for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
mruwnik committed Sep 29, 2023
1 parent 844b98b commit 23e76f3
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 36 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run pytest

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
cd api
python -m pip install --upgrade pip
pip install pipenv
pipenv install --dev
- name: Test with pytest
run: |
cd api
pipenv run pytest
2 changes: 1 addition & 1 deletion api/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ requests = "*"
alembic = "*"
sqlalchemy = "*"
mysql-connector-python = "*"
pytest = "*"

[dev-packages]
pytest = "*"

[requires]
python_version = "3.11"
71 changes: 36 additions & 35 deletions api/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 23e76f3

Please sign in to comment.