Skip to content

Merge pull request #8 from sanderploegsma/dependabot/github_actions/a… #31

Merge pull request #8 from sanderploegsma/dependabot/github_actions/a…

Merge pull request #8 from sanderploegsma/dependabot/github_actions/a… #31

Workflow file for this run

name: python
on:
push:
paths:
- ".github/workflows/python.yml"
- "python/**"
branches: [main]
pull_request:
paths:
- ".github/workflows/python.yml"
- "python/**"
branches: [main]
defaults:
run:
working-directory: python
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: cache poetry install
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-1.3.2
- uses: snok/install-poetry@v1
with:
version: 1.3.2
virtualenvs-create: true
virtualenvs-in-project: true
- name: cache deps
id: cache-deps
uses: actions/cache@v3
with:
path: .venv
key: pydeps-${{ hashFiles('**/poetry.lock') }}
- run: poetry install --no-interaction --no-root
if: steps.cache-deps.outputs.cache-hit != 'true'
- run: poetry install --no-interaction
- run: poetry run pytest