Bump ossf/scorecard-action from 2.3.0 to 2.3.1 (#40) #201
This file contains 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: Coverage | |
on: | |
push: | |
branches: | |
- master | |
tags-ignore: | |
- '**' | |
permissions: | |
contents: read | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 1 | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
name: Python ${{ matrix.python-version }} coverage | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: python -m pip install -r dev-requirements.txt | |
- run: ./tools/Linux/dist_script.sh | |
- run: python -m pip install dist/*.whl -v | |
- name: Prevent exceeding steam rate limits (waiting 30s) | |
run: sleep 30s | |
- run: pytest --cov=stlib --cov-report=xml | |
env: | |
steamid: ${{ secrets.STEAMID }} | |
account_name: ${{ secrets.ACCOUNT_NAME }} | |
password_raw: ${{ secrets.PASSWORD_RAW }} | |
shared_secret: ${{ secrets.SHARED_SECRET }} | |
identity_secret: ${{ secrets.IDENTITY_SECRET }} | |
api_key: ${{ secrets.API_KEY }} | |
LIMITED_ACCOUNT: ${{ secrets.LIMITED_ACCOUNT }} | |
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml | |
fail_ci_if_error: true | |
flags: unittests | |
verbose: true |