Skip to content

Commit

Permalink
update python and use uv
Browse files Browse the repository at this point in the history
  • Loading branch information
vpoulailleau committed Nov 6, 2024
1 parent ac300fd commit 29fcd34
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Install poetry
run: |
python -m pip install --upgrade pip
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
source $HOME/.poetry/env
poetry --version
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Run tests
run: |
source $HOME/.poetry/env
poetry run python --version
poetry install -v
poetry run pytest -s -vv --cov=padpo
uv run pytest -s -vv --cov=padpo

0 comments on commit 29fcd34

Please sign in to comment.