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 d71e696 commit 4bd60b2
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
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
1 change: 1 addition & 0 deletions api/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ sqlalchemy = "*"
mysql-connector-python = "*"

[dev-packages]
pytest = "*"

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

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

0 comments on commit 4bd60b2

Please sign in to comment.