no spin #2682
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 | |
on: | |
workflow_call: | |
workflow_dispatch: | |
pull_request: | |
branches: [main] | |
push: | |
merge_group: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 6 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f packages/requirements.txt ]; then pip install -r packages/requirements.txt; fi | |
if [ -f packages/requirements-optional.txt ]; then pip install -r packages/requirements-optional.txt; fi | |
pip install -e packages/fairchem-core[dev] | |
- name: ruff | |
run: | | |
ruff --version | |
ruff check src # tests has a lot of issues , TODO | |
ruff format --check src # tests |