Skip to content

Adding option to share value axis in plots #57

Adding option to share value axis in plots

Adding option to share value axis in plots #57

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
paths-ignore:
- "**.md"
jobs:
tests:
name: Tests with Python ${{ matrix.python-version }} and dolfinx ${{ matrix.dolfinx-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
dolfinx-version: ["0.6", "0.7", "0.8"]
exclude:
- dolfinx-version: "0.6"
python-version: "3.11"
- dolfinx-version: "0.6"
python-version: "3.12"
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Cache tox
uses: actions/cache@v3
with:
path: .tox
key: tox-${{hashFiles('pyproject.toml')}}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "pyproject.toml"
- name: Install dependencies
run: python -m pip install tox
- name: Convert Python version to tox env
# Workaround to map x.y Python version to form test-xy
# https://stackoverflow.com/a/67248310
run: |
RAW_TOX_ENV="test-py${{ matrix.python-version }}-dolfinx${{ matrix.dolfinx-version }}"
TOX_ENV=$(echo $RAW_TOX_ENV | sed 's/\.//g')
echo "tox_env=$TOX_ENV" >> "$GITHUB_ENV"
- name: Test with tox
run: tox -e ${{ env.tox_env }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}