1name: Python 2 3on: 4 push: 5 branches: 6 - main 7 pull_request: 8 9jobs: 10 test: 11 strategy: 12 matrix: 13 os: [ubuntu-24.04] 14 compiler: [gcc] 15 python-version: ['3.x'] 16 17 runs-on: ${{ matrix.os }} 18 19 steps: 20 - name: Environment setup 21 uses: actions/checkout@v4 22 - name: Python setup 23 uses: actions/setup-python@v5 24 with: 25 python-version: ${{ matrix.python-version }} 26 - name: Python dependencies 27 run: | 28 pip install -r requirements.txt 29 pip install -r requirements-test.txt 30 - name: Python test 31 env: 32 CC: ${{ matrix.compiler }} 33 FC: gfortran 34 run: | 35 make info 36 make -j2 37 export CEED_DIR=$PWD 38 pip install . 39 cd python/tests 40 PYTHON=python3 make test TEST_OPTS="--ceed /cpu/self/ref/serial -vv" 41 cd ../../examples/python 42 PYTHON=python3 make test TEST_OPTS="--ceed /cpu/self/ref/serial -vv" 43 cd ../.. 44 - name: Python style 45 env: 46 CC: ${{ matrix.compiler }} 47 FC: gfortran 48 run: | 49 make format-py && git diff --exit-code 50 - name: Python version 51 env: 52 CC: ${{ matrix.compiler }} 53 FC: gfortran 54 run: | 55 make vermin 56