Bump actions/checkout from 3 to 4 #72
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
# style.yml | |
name: style | |
on: | |
push: | |
branches: | |
- main | |
- release** | |
pull_request: | |
branches: | |
- main | |
- release** | |
jobs: | |
black: | |
name: black | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set-up python version | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" # supported by all tensorflow versions | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements/style.txt | |
- name: Run black checks | |
run: black src/ tests/ scripts/ --check --diff | |
flake8: | |
name: flake8 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set-up python version | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" # supported by all tensorflow versions | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements/style.txt | |
- name: Run flake8 checks | |
run: flake8 src/ tests/ scripts/ | |
isort: | |
name: isort | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set-up python version | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" # supported by all tensorflow versions | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements/style.txt | |
- name: Run isort checks | |
run: isort src/ tests/ scripts/ --check --diff |