diff --git a/.github/workflows/tox-workflow.yaml b/.github/workflows/tox-workflow.yaml index d35b9b64..3a043998 100644 --- a/.github/workflows/tox-workflow.yaml +++ b/.github/workflows/tox-workflow.yaml @@ -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-pixi@v0.8.1 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]