Skip to content

Commit

Permalink
ci: tox-uv for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato committed Oct 16, 2024
1 parent b877987 commit 8c5d59c
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,34 +145,18 @@ jobs:
with:
# Get history and tags for SCM versioning to work
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Update pip
run: python -m pip install --upgrade pip
- name: Get pip cache dir
id: pip-cache
shell: bash
run: echo "DIR=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Get current week number
id: get-week
shell: bash
run: echo "WEEK=$(date +'%V')" >> $GITHUB_OUTPUT
- name: Pip cache
uses: actions/cache@v4
- name: Install the latest version of uv with cache enabled
uses: astral-sh/setup-uv@v3
with:
path: ${{ steps.pip-cache.outputs.DIR }}
key: ${{ runner.os }}-pip-${{ steps.get-week.outputs.WEEK }}-${{ hashFiles('setup.cfg') }}
version: "latest"
enable-cache: true
cache-dependency-glob: ""
- name: Install pandoc
run: |
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest | grep -o "https.*amd64.deb" | wget -O pandoc.deb -qi -
sudo dpkg -i pandoc.deb && rm pandoc.deb
- name: Install tox
run: |
python -m pip install tox
- name: Testing with tox
run: python -m tox -e docs
run: uvx --with tox-uv tox -e docs

check-pypi:
name: Long description check for PyPI
Expand Down

0 comments on commit 8c5d59c

Please sign in to comment.