1name: Python 2 3on: 4 push: 5 branches: 6 - main 7 pull_request: 8 9jobs: 10 test: 11 strategy: 12 matrix: 13 os: [ubuntu-22.04] 14 compiler: [gcc-11] 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-11 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 ../.. 42 - name: Python style 43 env: 44 CC: ${{ matrix.compiler }} 45 FC: gfortran-11 46 run: | 47 make format-py && git diff --exit-code 48 - name: Python version 49 env: 50 CC: ${{ matrix.compiler }} 51 FC: gfortran-11 52 run: | 53 make vermin 54