Skip to content

Commit

Permalink
build: update checks pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperHG90 committed Jan 5, 2024
1 parent 3b8d38f commit 75563eb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ jobs:
# cache0 makes it easy to bust the cache if needed
gha-cache-key: cache0-py310
named-caches-hash: ${{ hashFiles('lockfiles/*.json', '**/something-else.lock') }}
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit/
key: pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Pre-commit hooks
run: just pre_commit
shell: bash
- name: format
run: just fmt
- name: lint
run: just lint
- name: test
run: just test
- name: package
run: just package
12 changes: 12 additions & 0 deletions .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ setup: venv pip pre_commit_setup
pre_commit: venv_activate
pre-commit run -a

fmt:
pants fmt ::

lint:
pants lint check ::

test:
pants test ::

package:
pants package ::

webserver:
#!/usr/bin/env bash
set -eo pipefail
Expand Down

0 comments on commit 75563eb

Please sign in to comment.