Skip to content

Commit

Permalink
Add pgf output requirements to CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 committed Feb 23, 2025
1 parent 594647b commit 238da38
Showing 1 changed file with 33 additions and 11 deletions.
44 changes: 33 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 238da38

Please sign in to comment.