Skip to content

Commit

Permalink
test: added github tests run
Browse files Browse the repository at this point in the history
  • Loading branch information
tsypuk committed Jul 24, 2023
1 parent c61e12c commit 8dcda03
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run tests

on:
push:
branches:
- master
paths:
- ".github/workflows/test.yml"
- "**.py"
pull_request:
branches:
- master
paths:
- ".github/workflows/test.yml"
- "**.py"

jobs:
test:
strategy:
matrix:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install poetry
run: pip install poetry
- name: Run all tests
run: |
poetry install
poetry run python -m unittest -v tests/*.py

0 comments on commit 8dcda03

Please sign in to comment.