Skip to content

Merge pull request #19 from borhanst/fix-bug-issues #9

Merge pull request #19 from borhanst/fix-bug-issues

Merge pull request #19 from borhanst/fix-bug-issues #9

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Lint with ruff
run: ruff check fastapi_admin_kit/
- name: Run tests
run: pytest
publish:
needs: test
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build tools
run: pip install hatch
- name: Build package
run: hatch build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1