Skip to content

Commit

Permalink
CI: Lint and build docs with pixi
Browse files Browse the repository at this point in the history
  • Loading branch information
sebp committed Jul 3, 2024
1 parent b03e56c commit b638a37
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/tox-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,24 @@ jobs:
sudo apt-get install cmake libenchant-2-dev
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install pandoc
- name: Setup Python
uses: actions/setup-python@v5
- name: Setup Pixi
uses: prefix-dev/setup-[email protected]
with:
python-version: '3.11'
- name: Install Tox
run: python -m pip install tox
- name: Run Tox
pixi-version: v0.24.2
cache: true
- name: Run Task
env:
RUFF_OUTPUT_FORMAT: github
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
tox run -e ${{ matrix.tox_env }}
pixi run -e ${{ matrix.tox_env }}
- name: Archive documentation
uses: actions/upload-artifact@v4
with:
name: documentation
path: doc/_build/html
if: ${{ matrix.tox_env == 'docs' }}
- name: Print debug information
run: cat .tox/${{ matrix.tox_env }}/log/*.log
if: ${{ failure() }}
if: ${{ matrix.tox_env == 'build-docs' }}
strategy:
fail-fast: false
matrix:
tox_env: [lint, docs]
tox_env: [lint, build-docs]

0 comments on commit b638a37

Please sign in to comment.