Skip to content

Build

Build #3

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
poetry install
- name: Run tests
run: |
poetry run pytest
- name: Build package
run: |
poetry build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: dist
path: dist