Skip to content

Tests

Tests #56

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * 0"
concurrency:
group: tests-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
ENV: dev
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Set UID
run: echo "UID=$(id --user)" > .env
- name: Install dependencies
run: poetry install
- name: Check linting
run: make lint
tests:
name: Package tests
needs: [lint]
runs-on: ubuntu-latest
env:
ENV: dev
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Install dependencies
run: poetry install
- name: Run tests
run: make test