chore(deps): update codecov/codecov-action action to v7 #1334
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: CI | |
| on: | |
| pull_request: | |
| branches: [master] | |
| push: | |
| branches: [master] | |
| jobs: | |
| run-ci: | |
| runs-on: ubuntu-latest | |
| # Required for OIDC: https://github.com/codecov/codecov-action?tab=readme-ov-file#using-oidc | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt install graphviz | |
| python -m pip install -U pip | |
| pip install tox | |
| - name: Run bandit test | |
| run: tox -e bandit | |
| - name: Run auto-tests | |
| run: tox -e cov-ci | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| use_oidc: true | |
| flags: unit-tests | |
| files: coverage.xml | |
| fail_ci_if_error: false | |
| - name: Run static analysis | |
| run: tox -e static | |
| - name: Build documentation | |
| run: tox -e docs | |
| - name: Test fakefront image | |
| run: | | |
| docker build . -t fakefront -f support/fakefront/Containerfile | |
| # sanity check that the image can load at least to the point of | |
| # detecting incomplete config. | |
| docker run fakefront 2>&1 | tee /dev/stderr | grep 'Must set EXODUS_AWS_ENDPOINT_URL' | |
| - name: Publish documentation | |
| if: ${{ success() }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.DOCS_TOKEN }} | |
| run: scripts/push-docs | |
| - name: Build package | |
| run: tox -e package |