Skip to content

Commit

Permalink
Merge pull request #4 from acharles7/add-github-workflow
Browse files Browse the repository at this point in the history
Add lint workflow for CICD
  • Loading branch information
acharles7 authored Feb 25, 2024
2 parents ebcef88 + 210b968 commit e63cf2f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python (3.12)

name: Python application

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: mypy
run: |
mypy -p src
- name: isort
run: |
isort --check .
- name: black
run: |
black --check .

0 comments on commit e63cf2f

Please sign in to comment.