Skip to content

Commit

Permalink
Add a CI job for running Python unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cameel committed Jan 20, 2021
1 parent fd7cabd commit 657f989
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,28 @@ jobs:
- checkout
- run: *run_docs_pragma_min_version

t_pyscripts_ubu:
docker:
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
steps:
- checkout
- run:
name: Python unit tests
command: PYTHONPATH="scripts/:$PYTHONPATH" python3 -m unittest discover --start-directory test/scripts/

t_pyscripts_win:
executor:
name: win/default
shell: powershell.exe
steps:
- run: git config --global core.autocrlf false
- checkout
- run:
name: Python unit tests
command: |
$env:PYTHONPATH="scripts/;$env:PYTHONPATH"
python.exe -m unittest discover --start-directory test\scripts
b_ubu_clang: &build_ubuntu2004_clang
resource_class: xlarge
docker:
Expand Down Expand Up @@ -988,6 +1010,8 @@ workflows:
- chk_errorcodes: *workflow_trigger_on_tags
- chk_antlr_grammar: *workflow_trigger_on_tags
- chk_docs_pragma_min_version: *workflow_trigger_on_tags
- t_pyscripts_ubu: *workflow_trigger_on_tags
- t_pyscripts_win: *workflow_trigger_on_tags

# build-only
- b_docs: *workflow_trigger_on_tags
Expand Down

0 comments on commit 657f989

Please sign in to comment.