Skip to content

Remove GH Actions dependencies caching #92

Remove GH Actions dependencies caching

Remove GH Actions dependencies caching #92

Workflow file for this run

on:
push:
name: pytest, ruff, mypy
jobs:
test:
runs-on: ubuntu-latest
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v4
- name: Set up python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: "3.11"
#----------------------------------------------
# ----- Set up .env -----
#----------------------------------------------
- name: Set up .env
run: |
cp .env.sample .env
echo "PLANTY_AUTH_SECRET=TEST_SECRET" >> .env
#----------------------------------------------
# ----- install uv -----
#----------------------------------------------
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.13"
#----------------------------------------------
# install dependencies
#----------------------------------------------
- name: Install dependencies
run: uv sync --all-extras --dev
#----------------------------------------------
# run test suite
#----------------------------------------------
- name: Run ruff
run: |
uv run ruff format --check
uv run ruff check
- name: Run pytest
run: |
uv run pytest --cov
- name: Run mypy
run: |
uv run mypy planty