Skip to content

Commit

Permalink
Add test workflow (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeSneyders committed Oct 25, 2023
1 parent 53499b1 commit 3ae86c6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test pipeline
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install poetry
poetry install --with test
- name: Run tests
run: |
source $(poetry env info -p)/bin/activate
pytest

0 comments on commit 3ae86c6

Please sign in to comment.