Update 04-code-checks.yml #4
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 checks | |
on: [push, pull_request] | |
jobs: | |
job1: | |
name: linting and formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@main | |
- name: Use Python version 3.8 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.8' | |
- name: Install Flake8 | |
run: | | |
python -m pip install ruff | |
- name: Run ruff linting test | |
run: | | |
ruff check src/model/ | |