Skip to content

Merge pull request #1 from knifecake/dependabot/pip/django-5.0.7 #8

Merge pull request #1 from knifecake/dependabot/pip/django-5.0.7

Merge pull request #1 from knifecake/dependabot/pip/django-5.0.7 #8

Workflow file for this run

name: Test
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
python -m pip install poetry==1.7.1
- name: Configure poetry
run: |
python -m poetry config virtualenvs.in-project true
- name: Cache the virtualenv
uses: actions/cache@v2
with:
path: ./.venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
- name: Validate the structure of the pyproject.toml
run: |
poetry check
- name: Verify that poetry.lock is consistent with pyproject.toml
run: |
poetry lock --check
- name: Install dependencies
run: |
poetry install --no-root
- name: Run pre-commit hooks
run: |
poetry run pre-commit run --all-files
- name: Run tests
run: |
poetry run coverage run shortuuid/runtests.py
- name: Report coverage
run: |
poetry run coverage report -m --skip-covered