Add github action for pytest

This commit is contained in:
Daniel O'Connell
2023-09-29 21:04:19 +02:00
parent 844b98b405
commit 23e76f3eb1
3 changed files with 62 additions and 36 deletions
+25
View File
@@ -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