Skip to content

Commit

Permalink
Merge pull request #341 from afuetterer/github-actions
Browse files Browse the repository at this point in the history
ci: update ci jobs
  • Loading branch information
huberrob committed Aug 18, 2023
2 parents 9ef3483 + 723b5ca commit 2118e3b
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,14 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-docs-${{ hashFiles('**/setup.json') }}
key: pip-docs-${{ hashFiles('pyproject.toml') }}
restore-keys: |
pip-docs-
- name: Install python dependencies
run: |
pip install .[docs]
- name: Install Latex compiler
run: |
sudo apt-get update
# sudo apt-get install -y latexmk dvipng texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
- name: Build documentation
env:
READTHEDOCS: 'True'
Expand Down Expand Up @@ -66,7 +61,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-pre-commit-${{ hashFiles('**/setup.json') }}
key: pip-pre-commit-${{ hashFiles('.pre-commit-config.yaml', 'pyproject.toml') }}
restore-keys: |
pip-pre-commit-
Expand All @@ -77,7 +72,7 @@ jobs:

- name: Install python dependencies
run: |
pip install .[dev]
pip install .[testing]
pip freeze
- name: Run pre-commit
Expand All @@ -102,7 +97,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ matrix.python-version }}-tests-${{ hashFiles('**/setup.json') }}
key: pip-${{ matrix.python-version }}-tests-${{ hashFiles('pyproject.toml') }}
restore-keys: |
pip-${{ matrix.python-version }}-tests
Expand All @@ -114,8 +109,7 @@ jobs:

- name: Install python dependencies
run: |
pip install .[dev]
# pip install -r requirements.txt
pip install .[testing]
pip freeze
- name: Run pytest
Expand Down

0 comments on commit 2118e3b

Please sign in to comment.