summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJeff Epler <jeff@adafruit.com>2021-03-15 13:50:49 -0500
committerGitHub <noreply@github.com>2021-03-15 13:50:49 -0500
commit05ed179e11599dd45a76dfb14ecf624d0ff96d68 (patch)
treea046c6d1f117814168150484ed1bf7840d3400d7 /.github/workflows
parent3cbff45f9aac5ea2855bbc888083d356a91c80fe (diff)
parentf9b4189b4c640823dabb76de8effd2a836da2eb0 (diff)
Merge pull request #4362 from microDev1/code-formatting
Add code formatting and translations check
Diffstat (limited to '.github/workflows')
-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: