-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4aae080
commit dc56c9b
Showing
4 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master] | ||
pull_request: | ||
branches: [ master] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Create virtual environment | ||
run: python -m venv venv | ||
|
||
- name: Activate virtual environment | ||
run: source venv/bin/activate | ||
|
||
- name: Install dependencies | ||
run: pip install -r requirements.txt && pip install -r tests/requirements.txt | ||
|
||
- name: Run linter | ||
run: pylint --output-format msvs --reports y ccmlib || true | ||
|
||
- name: Run linter for tests | ||
run: pylint --output-format msvs --reports y tests || true | ||
|
||
- name: Run tests | ||
run: | | ||
pytest --junitxml=junit.xml tests | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v4 | ||
if: always() | ||
with: | ||
report_paths: 'junit.xml' | ||
annotate_only: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ ccm.egg-info/ | |
.coverage | ||
dse_creds.txt | ||
.eggs/ | ||
junit.xml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
mock==5.1.0 | ||
pytest==8.2.1 | ||
requests==2.32.2 | ||
pylint==3.2.2 |
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