Skip to content

OPS-0 Bump version to 0.2.0 #64

OPS-0 Bump version to 0.2.0

OPS-0 Bump version to 0.2.0 #64

---
###
### Code style
###
name: pycode
on:
pull_request:
push:
branches:
- master
tags:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: False
matrix:
target:
- pycodestyle
name: "[ ${{ matrix.target }} ]"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: "${{ matrix.target }}"
run: |
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
}
retry make _code-${{ matrix.target }}
env:
RETRIES: 20
PAUSE: 10