fix: Minor bugfixes and refactoring #76
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: Pull Request Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
# Use concurrency to ensure that only one instance of this workflow is running at a time | |
concurrency: | |
group: pr-tests-${{ github.ref_name }} | |
cancel-in-progress: true | |
# installs mamba-org/setup-micromamba@v2 on all 3 platforms using matrix and runs pytest: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha || github.ref }} | |
- uses: prefix-dev/[email protected] # https://github.com/prefix-dev/setup-pixi | |
with: | |
pixi-version: v0.36.0 | |
cache: true | |
environments: lint | |
- run: pixi run lint | |
test: | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-13] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha || github.ref }} | |
- uses: mamba-org/setup-micromamba@v2 # https://github.com/mamba-org/setup-micromamba | |
with: | |
cache-environment: false | |
condarc: | | |
channels: | |
- conda-forge | |
environment-file: conda/environment.core.yml | |
create-args: >- | |
python=3.12 | |
pytest | |
- name: Install latest adapy | |
run: | | |
pip install -e . | |
- name: Runs Tests | |
run: pytest ./tests --ignore=./tests/fem/ --ignore=./tests/full/ --ignore=./tests/profiling/ --durations=0 |