-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Coverage, clean and create/recreate scenarios added, tests refactored…
… and fixed, workflows updated. (#65) * Makefile updated. * Base integration test marked with pytest.mark.integtest. * Tox scenario added, GH workflow updated. * Init and clean scenarios added. * Recreate commands added. * Mypy ignore updated. * Pylint check import pytest disabled. * Test folders renamed. * Test modules and classes names refactored. * MacOS and Windows added to GH workflow. * Windows temporarily removed from GH workflow. * Some lines excluded from coverage report. * Reformatted with black. * Comments in PR resolved. * Setup Docker on GH workflow. * Install Docker macOS option 2 * Docker setup fixed. * Install Docker updated. * Docker launch updated. * Docker launch updated. * Docker launch on CI updated. * Docker run updated. * GH workflow updated. * New workflow for a release PR added, ordinary workflow changed. * Workflow updated. * GH workflow fixed. * Resolved comments in the PR. * Windows added to GH workflow. * Disable protected-access runle for Pylint. * Pylintrc updated. * Pylintrc updated. * Pylintrc fixed. * Check copywrite script fixed. * No longer needed pylint option removed. * Debug CI code. * Debug action removed. * Tests with integration enabled for Linux only. * Another debug GH action added. * Check docker moved to a correct workflow. * Debug action removed. * Debug action added. * Debug workflow fixed. * Workflow statement fixed. * Try to fix Windows integration tests. * Try to fix integration tests for Windows 2. * Integration tests disabled for Windows release workflow. * Non working fixes removed. * Release workflow fixed. * Try to fix Windows tests. * Reformatted with black. * Try to fix tests on windows v2 * Workflows updated. * Tests fixed. * Try to fix Windows tests. * Missing import fixed. * Changes reverted. * Try to fix Windows tests. * Try to fix Windows tests. * Try to fix Windows tests. * Try to fix Windows tests. * Coverage ignore updated. * Coverage increased to 100%
- Loading branch information
1 parent
594c205
commit 64456f5
Showing
32 changed files
with
266 additions
and
30 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 |
---|---|---|
|
@@ -6,6 +6,8 @@ omit = | |
tests/* | ||
# omit Tox | ||
.tox/* | ||
# omit protos | ||
cosmpy/protos/* | ||
|
||
[html] | ||
directory = coverage_report |
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: Pre-release checks and tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-latest] | ||
python-version: [3.7, 3.8, 3.9] | ||
|
||
timeout-minutes: 30 | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-python@master | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: docker-practice/actions-setup-docker@master | ||
- name: Install dependencies | ||
run: pip install tox==3.24.1 | ||
- name: Integration tests for macOS | ||
# Currently ordinary workflow runs full set of tests (with integration) for Linux | ||
# and unit tests for other platforms | ||
# In pre-release check we run also integration tests for macOS | ||
# Windows integration tests are currently disabled | ||
run: | | ||
if [ "$RUNNER_OS" == "macOS" ]; then | ||
tox -e test-integration | ||
fi | ||
shell: bash |
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 |
---|---|---|
|
@@ -27,3 +27,6 @@ max-attributes=38 | |
|
||
[REFACTORING] | ||
max-nested-blocks=6 | ||
|
||
[MASTER] | ||
ignore=protos |
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 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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.