add autoversion #7
Workflow file for this run
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
name: Python package | |
on: | |
push: | |
branches: [ "main" ] | |
tags: [ "v*" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.10"] | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
date > generated.txt | |
git tag -l --contains HEAD > TAG | |
git describe --tags > REVISIONS || echo > REVISIONS | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install build ruff mypy | |
sudo apt install fuse3 libfuse3-dev libfuse-dev -y | |
python -m pip install -e . | |
- name: Lint with ruff | |
run: | | |
ruff check | |
- name: Lint with mypy | |
run: | | |
mypy yandex_fuse | |
- name: Build package | |
run: python -m build | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
generate_release_notes: true | |
files: | | |
dist/yandex_fuse-*.tar.gz |