This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
Broadcast json index file rather than loading on all ranks #1851
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: lint_tests | |
on: | |
# Trigger the workflow on push to master or any pull request | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
max-parallel: 1 | |
matrix: | |
platform: [ubuntu-latest] | |
python-version: [3.8] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 | |
flake8 --per-file-ignores="__init__.py:F401" . --count --exit-zero --statistics | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 --per-file-ignores="__init__.py:F401" . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# complain about lints | |
flake8 --per-file-ignores="__init__.py:F401" . | |
- name: Lint with black | |
run: | | |
pip install black | |
python -m black --check --diff . | |
- name: Type Checking with MyPy | |
run: | | |
pip install mypy | |
mypy || true |