Made make default to help target #109
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: Simple Sanity Check | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- '**/*.py' # Run the job only when Python files change | |
- 'Makefile' # Run the job when Makefile changes | |
- '.github/workflows/system-monitor.yml' # Run the job when system-monitor.yml changes | |
pull_request: | |
branches: | |
- "main" | |
paths: | |
- '**/*.py' # Run the job only when Python files change | |
- 'Makefile' # Run the job when Makefile changes | |
- '.github/workflows/system-monitor.yml' # Run the job when system-monitor.yml changes | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Sanity Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9.13" | |
cache: 'pipenv' | |
- name: Install Pipenv | |
run: pip install pipenv | |
- name: Install Pipfile dependencies | |
run: pipenv install --dev | |
- name: Lint with Flake8 | |
run: pipenv run make lint | |
- name: Test with Pytest | |
run: pipenv run make test |