-
Notifications
You must be signed in to change notification settings - Fork 216
34 lines (33 loc) · 968 Bytes
/
tox-workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Tox
on: [push, pull_request]
jobs:
linting_and_docs:
runs-on: ubuntu-latest
name: Linting and Docs
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install packages
run: |
sudo apt-get install cmake libenchant-2-dev tox
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install pandoc
- name: Run Tox
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
tox 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() }}
strategy:
fail-fast: false
matrix:
tox_env: [lint, docs]