Merge pull request #1638 from CEED/jeremy/min-qf-size #182
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: Python | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-24.04] | |
compiler: [gcc-13] | |
python-version: ['3.x'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Environment setup | |
uses: actions/checkout@v4 | |
- name: Python setup | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Python dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install -r requirements-test.txt | |
- name: Python test | |
env: | |
CC: ${{ matrix.compiler }} | |
FC: gfortran-13 | |
run: | | |
make info | |
make -j2 | |
export CEED_DIR=$PWD | |
pip install . | |
cd python/tests | |
PYTHON=python3 make test TEST_OPTS="--ceed /cpu/self/ref/serial -vv" | |
cd ../.. | |
- name: Python style | |
env: | |
CC: ${{ matrix.compiler }} | |
FC: gfortran-13 | |
run: | | |
make format-py && git diff --exit-code | |
- name: Python version | |
env: | |
CC: ${{ matrix.compiler }} | |
FC: gfortran-13 | |
run: | | |
make vermin |