Skip to content

Commit

Permalink
Enable CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jun 23, 2024
1 parent 71ec190 commit c784354
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ jobs:
- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install pre-commit pytest ruff # -r requirements.txt
python -m pip install --upgrade pip
pip install pytest # -r requirements.txt
pipx install pre-commit ruff
# python3 -m venv venv
# . venv/bin/activate
# pip install --upgrade pip
# pip install pre-commit pytest ruff # -r requirements.txt

- save_cache:
paths:
Expand All @@ -44,17 +47,18 @@ jobs:
# run tests!
# https://docs.astral.sh/ruff
- run:
name: ruff
command: |
. venv/bin/activate
python -m ruff check
command: ruff
# name: ruff
# command: |
# . venv/bin/activate
# python -m ruff check

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

# run tests!
# https://pytest.org
Expand All @@ -64,16 +68,6 @@ jobs:
. venv/bin/activate
python -m pytest
# run tests!
# https://pipx.pypa.io
- run:
name: pipx
command: |
python -m pip install --user pipx
# python -m pipx ensurepath
python -m pipx run ruff --version
pipx --version
- store_artifacts:
path: test-reports
destination: test-reports

0 comments on commit c784354

Please sign in to comment.