Skip to content

Commit

Permalink
feat: adding the CI tests for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
noble-varghese committed Oct 11, 2023
1 parent 652188c commit 44db846
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 4 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:

Linting:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
make dev
- name: Lint with mypy, black and ruff
run: |
make lint
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ build:
upload:
python -m pip install twine
python -m twine upload dist/portkey-ai-*
rm -rf dist
rm -rf dist

dev:
pip install -e ".[dev]"
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ dev =
black==23.7.0
typing_extensions==4.7.1
pydantic==1.10.12
pytest==7.4.2
python-dotenv==1.0.0

[options.packages.find]
exclude =
Expand Down
3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

0 comments on commit 44db846

Please sign in to comment.