Skip to content

Add GitHub Actions workflows for CI/CD #1

Add GitHub Actions workflows for CI/CD

Add GitHub Actions workflows for CI/CD #1

Workflow file for this run

name: Lint Code
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install flake8 black
- name: Run Flake8
run: flake8 src/
- name: Run Black
run: black --check src/