Skip to content

Include git source and revision to the output #45

Include git source and revision to the output

Include git source and revision to the output #45

Workflow file for this run

name: Python CI
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up poetry
run: |
python -m pip install poetry==1.5.1
poetry config virtualenvs.create false
- name: Install dependencies
run: poetry install
- name: Check formatting
run: black --check .
- name: Lint with flake8
run: flake8 .
- name: Test with pytest
run: pytest -s
- name: Build
run: poetry build
- name: Push build artifacts to GitHub
uses: actions/upload-artifact@v2
with:
name: artifacts
path: dist/