introduce bugged dict to set off monitor job #30
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: Run PyTest with Coverage | |
on: | |
push: | |
branches: | |
- main | |
- pytest-ci | |
- break-something | |
pull_request: | |
branches: | |
- main | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
environment-file: environment.yml | |
activate-environment: auto-code-rover | |
python-version: 3.12 | |
auto-update-conda: false | |
auto-activate-base: false | |
- run: | | |
conda info | |
conda list | |
- name: Set PYTHONPATH | |
# Mimic the Dockerfile's ENV setting | |
run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV | |
- name: Install tox | |
# Install tox inside the conda environment | |
run: conda install -y tox | |
- name: Run tox tests | |
run: tox -e py | |
- name: Check Coverage Report Exists | |
run: | | |
if [ ! -f coverage.xml ]; then | |
echo "coverage.xml not found! Aborting SonarQube scan." | |
exit 1 | |
fi | |
- name: SonarQube Scan | |
uses: SonarSource/sonarqube-scan-action@v4 | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |