Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danhje committed Jun 13, 2024
1 parent 967d7f5 commit 57a46de
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: tests

on: [push, pull_request]
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest]
python: ['3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: install poetry
run: |
python -m pip install --upgrade pip wheel pipx
python -m pipx install poetry
- name: install dependencies
run: poetry install
- name: run tests
run: poetry run pytest
- name: run linter
run: |
poetry run check

0 comments on commit 57a46de

Please sign in to comment.