diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 958fd0a2..699e9d22 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] + python-version: ["3.11"] group: ["bionty-unit", "bionty-docs"] timeout-minutes: 25 @@ -35,11 +35,9 @@ jobs: path: lndocs ref: main - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - cache: "pip" - cache-dependency-path: ".github/workflows/build.yml" # See dependencies below - name: Cache pre-commit uses: actions/cache@v3 with: @@ -48,10 +46,10 @@ jobs: - name: Install Python dependencies run: | - python -m pip install -U pip - pip install -U laminci - pip install rich - pip install ipywidgets + python -m pip install -U pip uv + python -m uv pip install --system -U laminci + python -m uv pip install --system rich + python -m uv pip install --system ipywidgets - name: Configure AWS uses: aws-actions/configure-aws-credentials@v1 @@ -61,7 +59,7 @@ jobs: aws-region: eu-central-1 - name: Lint - if: matrix.python-version == '3.10' && matrix.group == 'bionty-unit' + if: matrix.python-version == '3.11' && matrix.group == 'bionty-unit' run: | nox -s lint - name: Build @@ -75,7 +73,7 @@ jobs: path: .coverage - name: Deploy docs - if: ${{ matrix.python-version == '3.10' && matrix.group == 'bionty-docs' }} + if: ${{ matrix.python-version == '3.11' && matrix.group == 'bionty-docs' }} id: netlify uses: nwtgck/actions-netlify@v1.2 with: @@ -92,14 +90,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: - python-version: "3.10" - cache: "pip" - cache-dependency-path: ".github/workflows/build.yml" + python-version: "3.11" - run: | - pip install coverage[toml] - pip install --no-deps . + python -m pip install -U pip uv + uv pip install --system coverage[toml] + uv pip install --system --no-deps . - uses: actions/download-artifact@v2 - name: run coverage run: | diff --git a/noxfile.py b/noxfile.py index e87784ee..7201401e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -18,7 +18,7 @@ def docs(session: nox.Session): @nox.session @nox.parametrize("group", ["bionty-unit", "bionty-docs"]) def build(session: nox.Session, group: str): - session.run(*"pip install -e .[dev]".split()) + session.run(*"uv pip install --system -e .[dev]".split()) coverage_args = "--cov=bionty_base --cov-append --cov-report=term-missing" if group == "bionty-unit": session.run(*f"pytest {coverage_args} ./tests".split()) diff --git a/pyproject.toml b/pyproject.toml index a664d3db..8938b5a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,7 @@ classifiers = [ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ] dependencies = [ "pronto>=2.5.4, <2.5.6",