Skip to content

chore: setup release workflow (#4) #39

chore: setup release workflow (#4)

chore: setup release workflow (#4) #39

Workflow file for this run

name: CI
on:
push:
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- name: 📥 checkout
uses: actions/checkout@v4
- name: ⚡️ setup uv
uses: astral-sh/setup-uv@v2
with:
version: "latest"
enable-cache: true
cache-suffix: 2024-09-08 09:10
cache-dependency-glob: |
pyproject.toml
uv.lock
- name: 🧪 pytest
run: uv run pytest --cov fastapi_async_sqla --cov-report=term-missing --cov-report=xml
- name: "🐔 codecov: upload test coverage"
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Ruff:
runs-on: ubuntu-latest
steps:
- name: 📥 checkout
uses: actions/checkout@v4
- name: ⚡️ setup uv
uses: astral-sh/setup-uv@v2
with:
version: "latest"
enable-cache: true
cache-suffix: 2024-09-08 09:10
cache-dependency-glob: |
pyproject.toml
uv.lock
- name: 🐶 ruff
run: uv run ruff check