Refactor and enhance MOAB/DAGMC-related classes #84
Workflow file for this run
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: Code Quality Checks | |
on: | |
push: | |
branches: | |
- main # Change this to your main branch name if necessary | |
pull_request: | |
branches: | |
- main # Change this to your main branch name if necessary | |
jobs: | |
code_quality: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install black ruff | |
- name: Check code formatting with Black | |
run: black --diff --color . | |
- name: Run static analysis with Ruff | |
run: ruff check --output-format=github --extend-exclude tests . |