summaryrefslogtreecommitdiff
path: root/.github/workflows/pre-commit.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/pre-commit.yml')
-rw-r--r--.github/workflows/pre-commit.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 76bfd7786..894e28c0f 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -7,7 +7,6 @@ name: pre-commit
on:
pull_request:
push:
- branches: [main]
jobs:
pre-commit:
@@ -16,10 +15,13 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- name: Install deps
- run: sudo apt-get update && sudo apt-get install -y gettext
+ run: |
+ sudo apt-add-repository -y -u ppa:pybricks/ppa
+ sudo apt-get install -y black gettext uncrustify
+ pip3 install polib
- name: Populate selected submodules
run: git submodule update --init extmod/ulab
- - name: set PY
+ - name: Set PY
run: echo >>$GITHUB_ENV PY="$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
- uses: actions/cache@v2
with: