rewire api calls #35
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: build-test | |
on: | |
- push | |
- pull_request | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: poetry build and test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11", "3.12"] | |
poetry-version: ["1.8.4"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install poetry==${{ matrix.poetry-version }} | |
poetry config virtualenvs.create true | |
poetry config virtualenvs.in-project false | |
poetry config virtualenvs.path .virtualenvs | |
- name: Install project | |
run: poetry install --with test --no-interaction | |
- name: Test with poetry | |
run: poetry run pytest |