Disable GCS scanning to improve speed and prevent timeouts #37
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: Formatting and Unit Tests | |
on: | |
push: | |
jobs: | |
unit_tests: | |
name: Unit Test | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write # Required for Publish Test Results | |
pull-requests: write # Required for Publish Test Results | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
cache: 'pip' # caching pip dependencies | |
- run : pip install -r requirements-dev.txt | |
- name: Linting and formatting | |
uses: pre-commit/[email protected] | |
with: | |
extra_args: --all-files --show-diff-on-failure | |
- name: Unit tests | |
run: | | |
pytest --cov=manual_scans --cov=utils --cov-branch --cov-fail-under=15 unittests | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: "test_reports/*.xml" |