diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f9431db..2ac4710 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -16,17 +16,39 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install tox tox-gh-actions - - name: Test with tox - run: tox + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install tox tox-gh-actions + + # Install TeX distribution for PGF output from matplotlib + - name: Install TeX distribution for PGF output (Ubuntu) + if: runner.os == 'Linux' + run: | + sudo apt-get update + sudo apt-get install -y texlive-latex-extra + + - name: Install TeX distribution for PGF output (Windows) + if: runner.os == 'Windows' + run: | + choco install miktex -y + echo "C:\Program Files\MiKTeX\miktex\bin\x64" >> $env:GITHUB_PATH + + - name: Install TeX distribution for PGF output (macOS) + if: runner.os == 'macOS' + run: | + brew install --cask mactex-no-gui + echo "/Library/TeX/texbin" >> $GITHUB_PATH + + - name: Test with tox + run: tox deploy: needs: build