Skip to content

Commit

Permalink
Switch workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jlantz committed Oct 31, 2024
1 parent 794fcb1 commit 592e824
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 57 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/python-test.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run Tests
on:
push:
branches:
- "**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.7.1
virtualenvs-create: true
virtualenvs-in-project: true

- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
.venv
~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
poetry install --with dev
- name: Run tests
run: |
poetry run pytest tests/

0 comments on commit 592e824

Please sign in to comment.