diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index fb3e8c0..7a5d8a5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,37 +6,37 @@ on: jobs: docs: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: 3.12 + + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh - uses: actions/setup-node@v4 with: node-version: 14.x - - name: Update pip - run: | - pip install -U wheel - pip install -U setuptools - python -m pip install -U pip + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh - - name: Get pip cache dir - id: pip-cache - run: echo "::set-output name=dir::$(pip cache dir)" + - name: Get uv cache dir + id: uv-cache + run: echo "dir=$(uv cache dir)" >> $GITHUB_OUTPUT - - name: Cache pip + - name: Cache uv uses: actions/cache@v4 with: - path: ${{ steps.pip-cache.outputs.dir }} - key: pip|${{ runner.os }}|3.9|${{ hashFiles('setup.*') }} + path: ${{ steps.uv-cache.outputs.dir }} + key: uv|${{ runner.os }}|3.12|${{ hashFiles('requirements*.txt', 'pyproject.toml') }} - name: Install ursh - run: pip install -e . + run: uv pip install -e . - name: Build API docs run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 295e579..2744087 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,23 +34,20 @@ jobs: with: python-version: ${{ matrix.python }} - - name: Update pip - run: | - pip install -U wheel - pip install -U setuptools - python -m pip install -U pip + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh - - name: Get pip cache dir - id: pip-cache - run: echo "::set-output name=dir::$(pip cache dir)" + - name: Get uv cache dir + id: uv-cache + run: echo "dir=$(uv cache dir)" >> $GITHUB_OUTPUT - - name: Cache pip + - name: Cache uv uses: actions/cache@v4 with: - path: ${{ steps.pip-cache.outputs.dir }} - key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.*') }} + path: ${{ steps.uv-cache.outputs.dir }} + key: uv|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('requirements*.txt', 'pyproject.toml') }} - - run: pip install tox + - run: uv tool install tox --with tox-uv - name: Setup database if: matrix.postgres