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

CircleCI #15

Merged
merged 7 commits into from
Jun 23, 2024
Merged
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
34 changes: 26 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
docker:
# Specify the version you desire here
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
- image: cimg/python:3.12
- image: cimg/python:3.12-browsers

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand All @@ -31,26 +31,44 @@ jobs:
- run:
name: install dependencies
command: |
python -m pip install --upgrade pip
pipx install pre-commit ruff
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install ruff # -r requirements.txt
pip install pytest # -r requirements.txt
# python3 -m venv venv
# . venv/bin/activate
# pip install --upgrade pip
# pip install pre-commit pytest ruff # -r requirements.txt

- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}

# run tests!
# This example uses Django's built-in test-runner
# Other common Python testing frameworks include pytest
# https://docs.astral.sh/ruff
- run:
command: ruff check
# name: ruff
# command: |
# . venv/bin/activate
# python -m ruff check

# https://pre-commit.com
- run:
command: pre-commit
# command: |
# . venv/bin/activate
# pre-commit run --all-files

# run tests!
# https://pytest.org
# https://nose.readthedocs.io
- run:
name: run tests
name: pytest
command: |
. venv/bin/activate
python -m ruff .
python -m pytest

- store_artifacts:
path: test-reports
Expand Down
Loading