Make poetry version configurable, fix Docker build Warnings #45
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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ci-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
env: | |
POETRY_VERSION: 1.8.3 | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: "Setup: Python 3.11" | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install poetry==$POETRY_VERSION | |
- name: Lock pyproject.toml in Test Project | |
run: | | |
poetry -C tests/dummy_project/ lock | |
- name: Run unit tests | |
run: | | |
poetry install | |
poetry run pytest |