-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.22 KB
/
python-package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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