Skip to content

Commit

Permalink
Add Github action for running pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoscieln committed May 14, 2024
1 parent 41a4459 commit 53ad9d2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r src/requirements.txt
- name: Start service
run: |
docker-compose up
- name: Test
run: |
pytest

0 comments on commit 53ad9d2

Please sign in to comment.