Skip to content

keep py version in 3.12, for now #10

keep py version in 3.12, for now

keep py version in 3.12, for now #10

Workflow file for this run

name: Poetry CI
on:
push:
branches:
- feature/*
- dev
- main
pull_request:
branches:
- main
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
poetry-version: ["1.6.1", "1.7.1", "1.8.3"]
os: [ubuntu-22.04, macos-12]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- uses: actions/cache@v3
name: Define a cache for the venv
with:
path: ./.venv
key: venv-${{ runner.os }}-${{ hashFiles('poetry.lock') }}
- name: Tox and Poetry install
run: |
pip install tox
poetry install
# - name: Run tests
# run: poetry run tox -e ${{ matrix.python.toxenv }}
# - name: Upload Results to CodeCov
# if: success()
# uses: codecov/codecov-action@v3
# with:
# env_vars: PYTHON_VERSION
# fail_ci_if_error: false
# files: ./tests/reports/coverage-html/index.html,./tests/reports/coverage.xml
# flags: unittests
# name: "${{ matrix.os }} - Python ${{ matrix.python-version }}"
# token: ${{ secrets.CODECOV_TOKEN }}