Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuka committed Jun 10, 2024
1 parent 76fa61b commit 97726d4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
omit = tests/*
2 changes: 1 addition & 1 deletion .devcontainer/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rm /omd/sites/cmk/var/check_mk/packages/${NAME} \

mkp -v package package

rm $NAME-$VERSION.mkp
rm $NAME-$VERSION.mkp ||:
cp /omd/sites/cmk/var/check_mk/packages_local/$NAME-$VERSION.mkp .

mkp inspect $NAME-$VERSION.mkp
2 changes: 2 additions & 0 deletions .devcontainer/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
flake8
pytest
pytest-cov
pytest-md
pytest-emoji
requests-mock
6 changes: 5 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ jobs:
- name: Install pytest
run: su -l -c "REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt pip3 install -r $GITHUB_WORKSPACE/.devcontainer/requirements.txt" cmk
- name: Run pytest
run: su -l -c "python3 -m pytest" cmk
run: |
REPORT="$(mktemp)"
chown -R cmk:cmk $GITHUB_WORKSPACE $REPORT
su -l -c "cd $GITHUB_WORKSPACE; python3 -m pytest -v --emoji -cov . --md $REPORT " cmk
cat $REPORT > $GITHUB_STEP_SUMMARY

0 comments on commit 97726d4

Please sign in to comment.