Skip to content

Update to poetry and setup a docker image #29

Update to poetry and setup a docker image

Update to poetry and setup a docker image #29

Workflow file for this run

name: Python package
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# Installation
- name: Install dependencies
run: |
python -m pip install poetry
poetry install
# Testing
- name: Test with pytest
run: |
poetry run pytest
# Type checking
# - name: Type check
# run: |
# poetry run pytype .