Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ojh6404 committed Jan 13, 2024
1 parent 40013f3 commit cd0a8c0
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/peripheral.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: formatter and checker, module build test for python
name: formatter, checker and setup test for python

on:
push:
Expand All @@ -12,25 +12,22 @@ jobs:
peripheral:
runs-on: ubuntu-20.04
steps:
- name: checkout Code
- 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
- name: pip install formatters and checkers
run: |
python3.9 -m pip install mypy isort black pyproject-flake8
- name: install torch and numpy for module build
pip3 install mypy isort black pyproject-flake8
- name: pip 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
pip3 install numpy>=1.24 torch>=2.0
- name: check by mypy
run: |
pip3 install -r requirements.txt
mypy --version
mypy .
- name: reformat and check
run: |
python3.9 -m black .
python3.9 -m pflake8 node_scripts/ scripts/ test/
python3 -m black .
python3 -m pflake8 node_scripts/ scripts/ test/

0 comments on commit cd0a8c0

Please sign in to comment.