-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
316 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,11 @@ on: | |
push: | ||
|
||
jobs: | ||
build: | ||
Tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 📥 checkout | ||
uses: actions/checkout@v4 | ||
- name: 🐍 setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: ⚡️ setup uv | ||
uses: astral-sh/setup-uv@v2 | ||
with: | ||
|
@@ -22,11 +18,25 @@ jobs: | |
cache-dependency-glob: | | ||
pyproject.toml | ||
uv.lock | ||
- name: ⚡️ uv sync | ||
run: uv sync | ||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
Release: | ||
runs-on: ubuntu-latest | ||
concurrency: release | ||
permissions: | ||
id-token: write | ||
contents: write | ||
steps: | ||
- name: 📥 checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- 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: 📜 semantic release version | ||
run: uv run semantic-release --noop --strict version | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.