Skip to content

Commit

Permalink
CircleCI (#15)
Browse files Browse the repository at this point in the history
* Enable CircleCI

* Enable CircleCI

* Enable CircleCI

* Enable CircleCI

* Enable CircleCI

* Enable CircleCI

* Enable CircleCI
  • Loading branch information
cclauss authored Jun 23, 2024
1 parent a8b3a9a commit 96375f1
Showing 1 changed file with 26 additions and 8 deletions.
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

0 comments on commit 96375f1

Please sign in to comment.