Skip to content

Commit

Permalink
Add CircleCI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dochang committed Aug 3, 2023
1 parent eaf85c8 commit 79737d3
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .circleci/config.yml
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"
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Added

- CircleCI configuration

### Fixed

- Test code style
Expand Down

0 comments on commit 79737d3

Please sign in to comment.