Skip to content

Migrate to Pyproject and hatch #328

Migrate to Pyproject and hatch

Migrate to Pyproject and hatch #328

Workflow file for this run

name: tests
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
tests:
name: tests
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup python version
uses: actions/setup-python@v4
with:
python-version: '3.11.3'
architecture: x64
- name: Restore cached deps
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Hatch
uses: pypa/hatch@a3c83ab3d481fbc2dc91dd0088628817488dd1d5
- name: Install application and deps
run: |
python -m pip install --upgrade pip
pip install .
- name: Linting
run: |
pip install flake8
flake8 .
- name: Run tests
run: |
hatch run test:pytest