Skip to content

💥 Adopt a new document/layer architecture #93

💥 Adopt a new document/layer architecture

💥 Adopt a new document/layer architecture #93

Workflow file for this run

name: tests
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
PYTHONUTF8: 1
jobs:
unittest-python:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- name: Checkout the repository
uses: actions/checkout@v7.0.0
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: false
python-version: ${{ matrix.python-version }}
- name: Install cli tools
run: |
uv tool install yamk
- name: Install dependencies
env:
UV_GROUPS: --no-dev --group test
run: |
yam install
- name: Test the project
run: |
yam -e tests --cov --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: spapanik/dj_settings
files: ./coverage.xml
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: spapanik/dj_settings
report_type: test_results
files: ./junit.xml