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 }}
39 uses: actions/checkout@v3
41 - name: Set up Python ${{ matrix.python-version }}
42 uses: actions/setup-python@v3
44 python-version: ${{ matrix.python-version }}
47 uses: actions/cache@v3
49 # This path is specific to Ubuntu
51 # Look to see if there is a cache hit for the corresponding requirements file
52 key: v1-pip-${{ runner.os }}-${{ matrix.python-version }}
54 v1-pip-${{ runner.os }}
57 - name: Install dependencies
61 pip install myst-parser
62 sudo apt-get install -yy libacl1-dev
64 - name: Build the code
65 run: python ./setup.py build_ext -i
68 run: python -m pytest tests
73 - name: Re-build with coverage info
74 run: CFLAGS="-coverage" python ./setup.py build_ext -i
76 - name: Test with coverage
77 run: python -m pytest tests
79 - name: Upload coverage to Codecov
80 uses: codecov/codecov-action@v3
82 #files: ./coverage1.xml,./coverage2.xml
83 #directory: ./coverage/reports/
86 name: codecov-python-${{ matrix.python-version }}
87 #fail_ci_if_error: true
91 - name: Build documentation