Bump coverage from 7.6.3 to 7.6.4 #10
Workflow file for this run
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: Run Lint before Merging Pull Request | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
PYTHON_VERSION: "3.11" | |
permissions: | |
checks: write | |
pull-requests: write | |
contents: write | |
jobs: | |
lint-bicep: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Lint Bicep | |
uses: synergy-au/[email protected] | |
with: | |
analyse-all-files: "true" | |
lint-python: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python ${{ env.PYTHON_VERSION }} Environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run lint | |
run: pylint functions/**/*.py | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python ${{ env.PYTHON_VERSION }} Environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run unittests with coverage | |
run: | | |
pushd functions | |
coverage run -m unittest discover -s tests | |
coverage xml | |
popd | |
- name: Get Cover | |
uses: orgoro/[email protected] | |
with: | |
coverageFile: functions/coverage.xml | |
thresholdAll: 0.8 | |
token: ${{ secrets.GITHUB_TOKEN }} |