diff options
| author | Mark <56205165+gamblor21@users.noreply.github.com> | 2021-03-15 20:00:13 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-15 20:00:13 -0500 |
| commit | e326d7ca800ce7101ddce001320c5349ee5ddeb6 (patch) | |
| tree | 000a06790af7a8d27e9ba9fc27e10015815e1509 /.github/workflows/pre-commit.yml | |
| parent | 307d2a99febbf6cdff824131dddc2ef938f5ea13 (diff) | |
| parent | f7a988b9b307141611b07f6dc9da5b26e982c154 (diff) | |
Merge branch 'main' into rp_dp_parallel
Diffstat (limited to '.github/workflows/pre-commit.yml')
| -rw-r--r-- | .github/workflows/pre-commit.yml | 8 |
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: |
