OPS-0 use latest python verions #62
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
### | |
### Code style | |
### | |
name: pylint | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
tags: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: False | |
matrix: | |
target: | |
- pylint | |
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 |