2 # Trigger the workflow on push or
3 # pull request, but only for the
11 # Weekly run to account for
12 # changed dependencies.
20 runs-on: ${{ matrix.os }}
37 uses: actions/checkout@v2
39 - name: Set up Python ${{ matrix.python-version }}
40 uses: actions/setup-python@v2
42 python-version: ${{ matrix.python-version }}
45 uses: actions/cache@v2
47 # This path is specific to Ubuntu
49 # Look to see if there is a cache hit for the corresponding requirements file
50 key: v1-pip-${{ runner.os }}-${{ matrix.python-version }}
52 v1-pip-${{ runner.os }}
55 - name: Install dependencies
59 pip install recommonmark
60 sudo apt-get install -yy libacl1-dev
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