Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down