1name: Python - Test and Style 2 3on: 4 push: 5 6jobs: 7 test: 8 strategy: 9 matrix: 10 os: [ubuntu-latest] 11 compiler: [gcc-9] 12 13 runs-on: ${{ matrix.os }} 14 15 steps: 16 - name: Environment setup 17 uses: actions/checkout@v2 18 - name: Python setup 19 uses: actions/setup-python@v2 20 - name: Python dependencies 21 run: | 22 pip install -r requirements.txt 23 pip install -r requirements-test.txt 24 - name: Python test 25 env: 26 CC: ${{ matrix.compiler }} 27 FC: gfortran-9 28 run: | 29 make info 30 make -j2 31 export CEED_DIR=$PWD 32 pip install . 33 cd tests/python 34 python setup-qfunctions.py build 35 pytest test-*.py --ceed /cpu/self/ref/serial -vv 36 cd ../.. 37 - name: Python style 38 env: 39 CC: ${{ matrix.compiler }} 40 FC: gfortran-9 41 run: | 42 make style-py && git diff --exit-code 43