Update codecov-action auth and flags [RHELDST-40411] #507
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: Tox tests | |
| on: [push, pull_request] | |
| jobs: | |
| py39: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | |
| with: | |
| python-version: "3.9" | |
| - name: Install Tox | |
| run: pip install tox | |
| - name: Run Tox | |
| run: tox -e py39 | |
| py313: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install Tox | |
| run: pip install tox | |
| - name: Run Tox | |
| run: tox -e py313 | |
| static: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install Tox | |
| run: pip install tox | |
| - name: Run Tox | |
| run: tox -e static | |
| coverage: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install Tox | |
| run: pip install tox | |
| - name: Run Tox | |
| run: tox -e cov | |
| # Codecov Action required installing pytest-cov as it needs coverage. | |
| # The coverage library installed within tox is in virt-env and not | |
| # accessible to Codecov. | |
| - name: Install pytest cov | |
| run: pip install pytest-cov | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6 | |
| if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref =='refs/heads/master') | |
| with: | |
| use_oidc: true | |
| flags: unit-tests | |
| files: coverage.xml | |
| fail_ci_if_error: true | |
| verbose: true | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install Tox | |
| run: pip install tox | |
| - name: Run Tox | |
| run: tox -e docs |