2 # Trigger the workflow on push or
3 # pull request, but only for the
11 # Allow manual triggering
13 # Weekly run to account for
14 # changed dependencies.
22 runs-on: ${{ matrix.os }}
25 os: [ubuntu-22.04, macos-12]
38 uses: actions/checkout@v2
40 - name: Set up Python ${{ matrix.python-version }}
41 uses: actions/setup-python@v2
43 python-version: ${{ matrix.python-version }}
46 uses: actions/cache@v2
48 # This path is specific to Ubuntu
50 # Look to see if there is a cache hit for the corresponding requirements file
51 key: v2-pip-${{ runner.os }}-${{ matrix.python-version }}
53 v2-pip-${{ runner.os }}
56 - name: Install dependencies
60 pip install recommonmark
62 - name: Build the code
63 run: python ./setup.py build_ext -i
66 run: python -m pytest tests
71 - name: Re-build with coverage info
72 run: CFLAGS="-coverage" python ./setup.py build_ext -i
74 - name: Test with coverage
75 run: python -m pytest tests
77 - name: Upload coverage to Codecov
78 uses: codecov/codecov-action@v3
80 #files: ./coverage1.xml,./coverage2.xml
81 #directory: ./coverage/reports/
84 name: codecov-python-${{ matrix.python-version }}
85 #fail_ci_if_error: true
89 - name: Build documentation