Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tox testing` | |
on: [push] | |
jobs: | |
html: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python: ["3.6", "3.7", "3.8", "3.9", "3.10"] | |
sphinx: [1.*, 2.*, 3.*, 4.*] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Upgrade pip | |
run: pip install --upgrade pip setuptools | |
- name: Install sphinx version | |
run: pip install sphinx==${{ matrix.sphinx }} | |
- name: Install dependencies | |
run: pip install sphinx_rtd_theme sphinxcontrib-confluencebuilder | |
- name: Install sphinxcontrib-wavedrom module itself | |
run: pip install -e . | |
- name: Build html document with JS rendering | |
run: make -C example clean html | |
- name: Build singlehtml document with JS rendering | |
run: make -C example clean singlehtml | |
- name: Build dirhtml document with JS rendering | |
run: make -C example clean dirhtml | |
- name: Build html document with prebuilt images | |
run: make -C example clean html WAVEDROM_HTML_NOJSINLINE=1 | |
- name: Build singlehtml document with prebuilt images | |
run: make -C example clean singlehtml WAVEDROM_HTML_NOJSINLINE=1 | |
- name: Build dirhtml document with prebuilt images | |
run: make -C example clean dirhtml WAVEDROM_HTML_NOJSINLINE=1 | |
pdf-with-wavedromcli: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python: ["3.6", "3.7", "3.8", "3.9", "3.10"] | |
sphinx: [ 1.*, 2.*, 3.*, 4.*] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Test to see if wavedrom-cli is installed | |
run: npm i wavedrom-cli@latest && npx wavedrom-cli --help | |
- name: Upgrade pip | |
run: pip install --upgrade pip setuptools | |
- name: Install sphinx version | |
run: pip install sphinx==${{ matrix.sphinx }} | |
- name: Install dependencies | |
run: pip install sphinx_rtd_theme sphinxcontrib-confluencebuilder | |
- name: Install sphinxcontrib-wavedrom module itself | |
run: pip install -e . | |
- name: Install latex | |
run: sudo apt-get update --allow-unauthenticated -y && sudo apt-get install -y latexmk && sudo apt-get install -y texlive-latex-recommended && sudo apt-get install -y texlive-fonts-recommended && sudo apt-get install -y texlive-latex-extra | |
- name: Build latexpdf document using wavedrom-cli | |
run: make -C example clean latexpdf | |
- name: Copy build results for artifacting | |
run: mkdir -p example/artifacts/pdf_wavedromcli/${{ matrix.python }}; cp example/build/latex/Example.pdf example/artifacts/pdf_wavedromcli/${{ matrix.python }} | |
- name: Build latexpdf document using wavedrompy | |
run: make -C example clean latexpdf WAVEDROMPY_RENDERING=1 | |
- name: Copy build results for artifacting | |
run: mkdir -p example/artifacts/pdf_wavedrompy/${{ matrix.python }}; cp example/build/latex/Example.pdf example/artifacts/pdf_wavedrompy/${{ matrix.python }} | |
- name: Store build result as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: pdf_results | |
path: example/artifacts/ | |
confluence: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python: ["3.7", "3.8", "3.9", "3.10"] | |
sphinx: [5.*] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Upgrade pip | |
run: pip install --upgrade pip setuptools | |
- name: Install sphinx version | |
run: pip install sphinx==${{ matrix.sphinx }} | |
- name: Install dependencies | |
run: pip install sphinx_rtd_theme sphinxcontrib-confluencebuilder | |
- name: Install sphinxcontrib-wavedrom module itself | |
run: pip install -e . | |
- name: Build confluence without publishing | |
run: sphinx-build -W -b confluence example/source confluenceoutput |