summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authormicroDev <70126934+microDev1@users.noreply.github.com>2021-03-15 19:26:29 +0530
committermicroDev <70126934+microDev1@users.noreply.github.com>2021-03-15 19:26:29 +0530
commit090b6ba42fcdfbb16844f77892087f91aa6ea201 (patch)
treef1a758bc13de5a4eb1995ddf5ef50e79fb3832a0 /.github
parent3cbff45f9aac5ea2855bbc888083d356a91c80fe (diff)
update pre-commit
- add formatting check - add translations check
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml2
-rw-r--r--.github/workflows/pre-commit.yml8
2 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f65618b40..29d3d5b28 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -43,8 +43,6 @@ jobs:
run: |
gcc --version
python3 --version
- - name: Translations
- run: make check-translate
- name: New boards check
run: python3 -u ci_new_boards_check.py
working-directory: tools
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: