Triggered by informatter #8
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: Full Stack CI | |
run-name: Triggered by ${{ github.actor }} | |
on: | |
push: | |
# runs action on pushes to develop and master | |
branches: | |
- master | |
- develop | |
# runs action on PRs to develop | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
lint_backend: | |
name: Lint Backend | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11.7" # Use the appropriate Python version | |
- name: Display Python version | |
run: python --version | |
- name: Install Poetry | |
#poetry config virtualenvs.create false | |
run: | | |
pip install poetry | |
- name: Print Poetry Version | |
run: poetry --version | |
- name: Install Poetry Dependencies | |
#poetry install | |
run: | | |
cd backend | |
poetry install --only dev | |
- name: Run Linting | |
# poetry shell | |
run: | | |
cd backend | |
poetry run ruff check . | |
poetry run pyright . | |
poetry run bandit -r . | |
# - name: Run Flake8 | |
# run: | | |
# flake8 backend/ | |
# - name: Lint with Ruff | |
# run: | | |
# poetry run ruff check . | |
# - name: Run Pyright | |
# run: poetry run pyright . | |
# - name: Run Bandit | |
# run: poetry run bandit -r . | |
# lint_frontend: | |
# name: Lint Frontend | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout Repository | |
# uses: actions/checkout@v4 | |
# - name: Set up Node.js | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: '16' | |
# - name: Install Dependencies | |
# run: npm install | |
# - name: Run ESLint | |
# run: | | |
# npm run lint |