Skip to content

build(deps): bump actions/cache from 4 to 5 #17

build(deps): bump actions/cache from 4 to 5

build(deps): bump actions/cache from 4 to 5 #17

Workflow file for this run

name: ci
permissions:
contents: read
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- run: python -m pip install pre-commit
shell: bash
- run: python -m pip freeze --local
shell: bash
- uses: actions/cache@v5
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- run: pre-commit run --all-files --show-diff-on-failure --color=always
shell: bash
unit-tests:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v5
- name: Install poetry
id: install-poetry
run: |
pipx install poetry==1.6.1
shell: bash
- name: install deps and run tests
run: |
python -m venv .venv
source .venv/bin/activate
poetry install --with dev
coverage run -m pytest tests
coverage report --skip-covered