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
name: formatter and checker, module build test for python | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
peripheral: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout Code | |
uses: actions/checkout@v2 | |
- name: checkout python@3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- name: install formatters and checkers | |
run: | | |
python3.9 -m pip install mypy isort black pyproject-flake8 | |
- name: install torch and numpy for module build | |
run: | | |
python3.9 -m pip install numpy>=1.24 torch>=2.0 | |
python3.9 -m pip install -r requirements.txt | |
- name: check by mypy | |
run: | | |
mypy --version | |
mypy . | |
- name: reformat and check | |
run: | | |
python3.9 -m black . | |
python3.9 -m pflake8 node_scripts/ scripts/ test/ |