feat: allow usage of '-u' flag with commands #2079
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: C and Python coverage | |
| on: | |
| push: | |
| branches: [develop] | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**.md' | |
| pull_request: | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**.md' | |
| workflow_dispatch: | |
| inputs: | |
| reason: | |
| description: 'Reason for running workflow' | |
| required: true | |
| jobs: | |
| coverage: | |
| runs-on: 'ubuntu-latest' | |
| steps: | |
| - name: Log reason (manual run only) | |
| if: github.event_name == 'workflow_dispatch' | |
| run: | | |
| echo "Reason for triggering: ${{ github.event.inputs.reason }}" | |
| - name: Check out | |
| uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
| with: | |
| fetch-depth: 0 # unshallow fetch for setuptools-scm | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements.txt -r requirements-dev.txt | |
| - name: Build AFDKO wheel | |
| env: | |
| CFLAGS: '--coverage -I/usr/include/libxml2' | |
| run: | | |
| python -m pip install build>=0.7.0 | |
| python -m build --wheel | |
| - name: Install AFDKO wheel | |
| run: | | |
| python -m pip install dist/*.whl -q | |
| - name: Generate Python and C coverage | |
| run: | | |
| python -m pip install pytest-cov -q | |
| python -m pytest tests --cov --cov-report=xml --color=yes | |
| - name: Upload coverage results | |
| run: | | |
| bash <(curl -s https://codecov.io/bash) -y .codecov.yml |