Skip to content

Fix issue with caching during build #48

Fix issue with caching during build

Fix issue with caching during build #48

Workflow file for this run

name: Python package
on:
push:
branches:
- main
- "releases/**"
pull_request:
branches:
- main
- "releases/**"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Poetry
uses: Gr1N/setup-poetry@v8
with:
poetry-version: "1.7.1"
- name: Configure Poetry for CI build
run: |
poetry config --unset virtualenvs.create --local
poetry config --unset virtualenvs.in-project --local
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: make install
- name: CI
run: make ci