-
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.
* Replace print with logger * Update to 1.4.10 * Update to 1.4.11 * Update to 1.4.11 * Update to 1.4.11 * Update to 1.4.11 * Update to 1.4.11 * Update to 1.4.11 * Update to 1.4.11 * Update to 1.4.11 * Update to 1.4.11 * Update GA and README.md * Update GA and README.md * Update GA and README.md * Update GA and README.md * Rearrange project structure, add tests for upload_image * Rearrange project structure, add tests for upload_image * Rearrange project structure, add tests for upload_image * Fix linters * Fix linters * Fix linters * Fix linters * Fix linters * Fix linters * Fix linters * Add test_reporter_utils_delete_file.py * Add test_reporter_utils_delete_file.py * 100% cover "reporter_utils" * 100% cover "reporter_utils" * 100% cover "reporter_utils" * 100% cover "reporter_utils" * Add explicit coding (utf-8) * Added test_reporter_utils_case_stat.py * Added test_reporter_utils_csv_parser_*.py * Added test_reporter_utils_logger_config.py * Added test_engines_plotly_reporter_draw_automation_state_report.py * Added test_engines_plotly_reporter_draw_test_case_by_area.py * Added test_engines_plotly_reporter_draw_test_case_by_priority.py.py * Variate more params for draw functions * Add test_engines_plotly_reporter_draw_history_state_chart.py * Fix test against missed filename * Linter fixes * Linter fixes * Linter fixes * Linter fixes * Add explicit coding (utf-8) * Linter fixes * Linter fixes * Linter fixes * Linter fixes * Linter fixes * Linter fixes
- Loading branch information
1 parent
6a7c1d4
commit cc1cc44
Showing
51 changed files
with
2,086 additions
and
446 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
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,99 @@ | ||
name: Linters | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install pylint | ||
pip install mypy | ||
pip install wemake-python-styleguide | ||
pip install black | ||
pip install types-xmltodict | ||
pip install types-requests | ||
pip install pytest | ||
pip install faker | ||
pip install pillow | ||
- name: Add 'testrail_api_reporter' to PYTHONPATH | ||
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)/testrail_api_reporter:." >> $GITHUB_ENV | ||
- name: Analysing the code with pylint | ||
id: pylint | ||
continue-on-error: true | ||
run: | | ||
changed_files=$(git diff --diff-filter=d --name-only $(git merge-base HEAD origin/master) HEAD | grep '\.py$') || true | ||
echo $changed_files | ||
if [ -n "$changed_files" ]; then | ||
pylint $changed_files | ||
else | ||
echo "No files changed, passing by" | ||
exit 0 | ||
fi | ||
- name: Analysing the code with mypy | ||
id: mypy | ||
continue-on-error: true | ||
run: | | ||
changed_files=$(git diff --diff-filter=d --name-only $(git merge-base HEAD origin/master) HEAD | grep '\.py$') || true | ||
echo $changed_files | ||
if [ -n "$changed_files" ]; then | ||
mkdir -p .mypy_cache | ||
mypy $changed_files --install-types --non-interactive --ignore-missing-imports --explicit-package-bases | ||
else | ||
echo "No files changed, passing by" | ||
exit 0 | ||
fi | ||
- name: Check code with flake8 | ||
id: flake8 | ||
continue-on-error: true | ||
run: | | ||
changed_files=$(git diff --diff-filter=d --name-only $(git merge-base HEAD origin/master) HEAD | grep '\.py$') || true | ||
echo $changed_files | ||
if [ -n "$changed_files" ]; then | ||
flake8 $changed_files | ||
else | ||
echo "No files changed, passing by" | ||
exit 0 | ||
fi | ||
- name: Check code with Black | ||
id: black | ||
continue-on-error: true | ||
run: | | ||
changed_files=$(git diff --diff-filter=d --name-only $(git merge-base HEAD origin/master) HEAD | grep '\.py$') || true | ||
echo $changed_files | ||
if [ -n "$changed_files" ]; then | ||
black --diff --check --color $changed_files | ||
else | ||
echo "No files changed, passing by" | ||
exit 0 | ||
fi | ||
- name: Check runner state | ||
run: | | ||
failed_steps=() | ||
if [[ "${{ steps.pylint.outcome }}" == "failure" ]]; then failed_steps+=("Pylint"); fi | ||
if [[ "${{ steps.black.outcome }}" == "failure" ]]; then failed_steps+=("Black"); fi | ||
if [[ "${{ steps.mypy.outcome }}" == "failure" ]]; then failed_steps+=("Mypy"); fi | ||
if [ ${#failed_steps[@]} -ne 0 ]; then | ||
echo "Failed: ${failed_steps[*]}" | ||
exit 1 | ||
else | ||
echo "All passed, well done, bro!" | ||
fi | ||
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,46 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install pytest | ||
pip install pytest-xdist | ||
pip install pytest-cov | ||
pip install faker | ||
pip install pillow | ||
- name: Add 'testrail_api_reporter' to PYTHONPATH | ||
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)/testrail_api_reporter:." >> $GITHUB_ENV | ||
- name: Execute tests | ||
id: tests | ||
run: pytest tests -n=auto --cov=testrail_api_reporter --cov-report=term --cov-report=xml:coverage.xml --cov-report=html | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v4.0.1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: wwakabobik/testrail_api_reporter | ||
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: true | ||
- name: Coveralls GitHub Action | ||
uses: coverallsapp/github-action@v2.2.3 | ||
with: | ||
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }} |
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,39 @@ | ||
name: Tests-PR | ||
on: | ||
push: | ||
branches-ignore: | ||
- 'master' | ||
pull_request: | ||
branches-ignore: | ||
- 'master' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install pytest | ||
pip install pytest-xdist | ||
pip install pytest-cov | ||
pip install faker | ||
pip install pillow | ||
- name: Add 'testrail_api_reporter' to PYTHONPATH | ||
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)/testrail_api_reporter:." >> $GITHUB_ENV | ||
- name: Execute tests | ||
id: tests | ||
env: | ||
FREEIMAGEHOST_API_KEY: ${{ secrets.FREEIMAGEHOST_API_KEY }} | ||
run: pytest tests -n=auto --cov=testrail_api_reporter --cov-report=term --cov-report=xml:coverage.xml --cov-fail-under=95 |
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
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 was deleted.
Oops, something went wrong.
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,5 @@ | ||
[pytest] | ||
log_level=DEBUG | ||
addopts = -vvv -rsfEx --tb=short -p no:warnings -p no:logging | ||
norecursedirs = tests/test_source | ||
python_paths = src |
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,12 +1,12 @@ | ||
requests | ||
xmltodict | ||
testrail-api | ||
plotly | ||
psutil | ||
atlassian-python-api==3.41.14 | ||
kaleido | ||
httplib2 | ||
atlassian-python-api>=3.41.11 | ||
google-api-python-client | ||
google-auth-httplib2 | ||
google-auth-oauthlib | ||
google-api-python-client | ||
httplib2 | ||
kaleido | ||
oauth2client | ||
plotly | ||
psutil | ||
requests | ||
testrail-api | ||
xmltodict |
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
Oops, something went wrong.