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 22fa1a6
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 3 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
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"
40 changes: 37 additions & 3 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 22fa1a6

Please sign in to comment.