-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
72 additions
and
0 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,68 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
python: circleci/python@2.1.1 | ||
|
||
jobs: | ||
Mega-Linter: | ||
environment: | ||
DEFAULT_WORKSPACE: /root/project | ||
docker: | ||
- image: oxsecurity/megalinter-go:v7 | ||
# checkov:skip=CKV_CIRCLECIPIPELINES_2:prefer mutable but stable tags | ||
steps: | ||
- checkout | ||
- run: | ||
command: | | ||
sh /entrypoint.sh | ||
- store_artifacts: | ||
path: megalinter-reports | ||
test: | ||
parameters: | ||
python-version: | ||
type: string | ||
executor: | ||
name: python/default | ||
tag: << parameters.python-version >> | ||
steps: | ||
- checkout | ||
- run: | ||
command: | | ||
pipenv --python << parameters.python-version >> | ||
- python/install-packages: | ||
pkg-manager: pipenv | ||
args: "--dev" | ||
- run: | ||
name: lint | ||
command: | | ||
pipenv run lint | ||
- run: | ||
name: test | ||
command: | | ||
pipenv run test | ||
- run: | ||
name: packaging test | ||
command: | | ||
set +e | ||
pipenv run clean | ||
pipenv run package | ||
pipenv run check-package | ||
# Figure out which versions of Python work well with Invoke, since | ||
# Invoke may not work with recent Python releases. | ||
# | ||
# https://github.com/pyinvoke/invoke/issues/833#issuecomment-1293148106 | ||
# https://github.com/pyinvoke/invoke/pull/458 | ||
# https://github.com/pyinvoke/invoke/pull/606 | ||
|
||
workflows: | ||
CI: | ||
jobs: | ||
- Mega-Linter | ||
- test: | ||
matrix: | ||
parameters: | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" |
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 |
---|---|---|
|
@@ -2,6 +2,10 @@ | |
|
||
## [Unreleased] | ||
|
||
### Added | ||
|
||
- CircleCI configuration | ||
|
||
### Fixed | ||
|
||
- Test code style | ||
|