Skip to content

Commit

Permalink
Adds tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
desertaxle committed Jan 15, 2024
1 parent b750b3e commit beadd87
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Tests

on:
pull_request:
paths:
- "**/*.py"
- .github/workflows/tests.yaml
- pyproject.toml
- poetry.lock
push:
branches:
- main
paths:
- "**/*.py"
- .github/workflows/tests.yaml
- pyproject.toml
- poetry.lock

jobs:
run-tests:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
fail-fast: false
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
cache-dependency-path: poetry.lock

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install dependencies
run: |
poetry install
- name: Run tests
run: |
pytest -vv
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ black = "^23.12.0"
astor = "^0.8.1"
rich = "^13.7.0"


[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
ruff = "^0.1.8"
Expand Down

0 comments on commit beadd87

Please sign in to comment.