Merge pull request #11 from ThomasRubini/ci

This commit is contained in:
Thomas Rubini 2023-01-03 15:26:15 +01:00 committed by GitHub
commit 72a5967b90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 0 deletions

20
.github/workflows/tests.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Tests
on: [push]
jobs:
api:
name: Test API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r dev-requirements.txt
- name: Run tests
run: |
python -m pytest --verbose

1
dev-requirements.txt Normal file
View File

@ -0,0 +1 @@
pytest==7.2.0

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
Flask==2.2.2
pyjwt==2.6.0