Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move tests command to task py #103

Merged
merged 4 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,34 @@ jobs:
name: docker-executor
python_version: "<<parameters.python_version>>"
parallelism: 4
working_directory: ~/project/api
steps:
- checkout:
path: ~/project
- checkout
- run:
name: Install Dependencies
command: poetry install --no-root
name: Install poetry
command: python -m pip install poetry
- run:
name: Set PYTHONPATH
command: echo 'export PYTHONPATH=$PYTHONPATH:.' >> $BASH_ENV
name: Install dev tool dependency
command: python -m poetry install
- run:
name: Install backend API dependency
command: python -m poetry run inv api.init-poetry-env
- run:
name: Run tests
command: |
poetry run pytest ../tests || poetry run pytest --last-failed ../tests
command: python -m poetry run inv api.test

precommit:
executor: docker-executor
working_directory: ~/project/api
steps:
- checkout:
path: ~/project
- checkout
- run:
name: Install Pre-commit
command: pip install pre-commit
name: Install poetry
command: python -m pip install poetry
- run:
name: Run pre-commit hooks
command: pre-commit run --all-files
name: Install dev tool dependency
command: python -m poetry install --with pre-commit
- run:
name: Run tests
command: python -m poetry run inv run-pre-commit

build-docs:
description: "Build docs"
Expand Down
Loading
Loading