Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedov committed Dec 1, 2024
1 parent 56b4c4a commit d093c65
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,16 @@ on:
pull_request:

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout Repo
uses: actions/[email protected]

- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
- uses: actions/checkout@v4
- name: Install the latest version of uv and set the python version
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}

- name: Set up Poetry
uses: snok/[email protected]

- name: Cache
id: poetry-venv-cache
uses: actions/[email protected]
with:
path: .venv
key: venv-python${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install Dependencies
run: poetry install
if: steps.poetry-venv-cache.outputs.cache-hit != 'true'

- name: Test
run: poetry run pytest --cov=./ --cov-report=xml

- name: Codecov
uses: codecov/[email protected]
- name: Test with python ${{ matrix.python-version }}
run: uv run --frozen pytest --cov=./ --conv-report=xml

0 comments on commit d093c65

Please sign in to comment.