Skip to content

Commit

Permalink
feat: test flow (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed Jun 3, 2023
1 parent 90ab7f9 commit d6e9d90
Show file tree
Hide file tree
Showing 8 changed files with 404 additions and 20 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: Test

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version:
- 3.8
- 3.9
- "3.10"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python - -y
- name: Install dependencies
run: poetry install --with=test
- name: Run tox targets for ${{ matrix.python-version }}
run: poetry run tox run -f python$(echo ${{ matrix.python-version }} | tr -d .)
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
.idea/
.coverage
*.pyc
__pycache__
venv
Expand Down
Loading

0 comments on commit d6e9d90

Please sign in to comment.