[pre-commit.ci] pre-commit autoupdate #280
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: CI | |
on: | |
push: | |
# The CI is executed on every push on every branch | |
branches: | |
- main | |
pull_request: | |
# The CI is executed on every pull request to the main branch | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/scientificcomputing/fenics-gmsh:2023-08-16 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache | |
id: cache-primes | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/instant | |
~/.cache/dijitso | |
~/.cache/pip | |
key: cache_v2 | |
restore-keys: | | |
cache_v2 | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -e ".[test]" | |
- name: Test with pytest | |
run: | | |
python3 -m pytest |