Skip to content

Add ability to set priority for workers (#81) #80

Add ability to set priority for workers (#81)

Add ability to set priority for workers (#81) #80

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
- run: pip install -r requirements.txt
- run: pip install -e .
- run: flake8 kuyruk/
- run: mypy kuyruk/
- run: pytest -v --cov=kuyruk --cov-report xml tests/
- uses: coverallsapp/github-action@v2
- run: echo ${{github.ref_name}} > VERSION
- name: Install pypa/build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: >-
python3 -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1