zombie-einstein pre-merge checks #1
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: pre-merge | |
run-name: ${{ github.actor }} pre-merge checks | |
on: [pull_request] | |
jobs: | |
run-pre-commit: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- uses: snok/install-poetry@v1 | |
with: | |
version: 1.5.1 | |
virtualenvs-create: false | |
installer-parallel: true | |
- run: poetry install | |
- run: pre-commit install | |
- run: task lint | |
run-tests: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- uses: snok/install-poetry@v1 | |
with: | |
version: 1.5.1 | |
virtualenvs-create: false | |
installer-parallel: true | |
- run: poetry install | |
- run: pytest -vv | |
build-package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- uses: snok/install-poetry@v1 | |
with: | |
version: 1.5.1 | |
virtualenvs-create: false | |
installer-parallel: true | |
- run: poetry install | |
- run: poetry build | |
- run: echo "VERSION=$(poetry version --short)" >> $GITHUB_ENV | |
- run: ls dist |