Skip to content

v1.1.1

v1.1.1 #31

Workflow file for this run

name: deploy
on:
release:
types: [created]
jobs:
build-and-publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/idessem
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
run: uv python install 3.11
- name: Install the project
run: |
uv sync --all-extras --dev
- name: Runs tests
run: |
uv run pytest ./tests
- name: Static typing check
run: |
uv run mypy ./idessem
- name: PEP8 check
run: |
uv run ruff check ./idessem
- name: Builds package
if: startsWith(github.ref, 'refs/tags')
run: |
uv build
- name: PyPI publish
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1