Merge pull request #5 from CCA-Software-Group/workflows #38
This file contains hidden or 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: Coding standards | |
on: push | |
jobs: | |
check_code_standards: | |
name: Format, lint code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install package and dependencies | |
run: | | |
pip install setuptools --upgrade | |
pip install .[coding_standards] | |
- name: Run `ruff` linter / formatter | |
run: ruff check . |