diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3efb3a0..79999d2 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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/checkout@v3.1.0 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4.3.0 + - 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/install-poetry@v1.3.3 - - - name: Cache - id: poetry-venv-cache - uses: actions/cache@v3.0.11 - 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/codecov-action@v3.1.1 + - name: Test with python ${{ matrix.python-version }} + run: uv run --frozen pytest --cov=./ --conv-report=xml