-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from ZEISS/task/fix-test-setup
Task/fix test setup
- Loading branch information
Showing
31 changed files
with
1,397 additions
and
813 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,10 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: psf/black@stable |
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
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,35 @@ | ||
name: Python unittest | ||
on: [push, pull_request] | ||
jobs: | ||
unittest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Install dependencies | ||
run: | | ||
poetry install --all-extras | ||
continue-on-error: true | ||
- name: Test with pytest | ||
run: | | ||
poetry run coverage run | ||
poetry run coverage report | ||
poetry run coverage xml | ||
- uses: 5monkeys/cobertura-action@master | ||
with: | ||
minimum_coverage: 40 | ||
fail_below_threshold: true | ||
if: always() | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: always() | ||
with: | ||
files: | | ||
test-results/**/*.xml | ||
test-results/**/*.trx | ||
test-results/**/*.json |
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
""" | ||
acme-dns-azure - a ACME client setup based on Certbot for dns-01 challenges via Azure Cloud services. | ||
""" | ||
__author__ = "ZEISS Digital Innovation Partners" | ||
__author__ = "ZEISS Digital Innovation Partners" |
Oops, something went wrong.