Skip to content

Commit

Permalink
Adds github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pvgupta24 committed Nov 14, 2024
1 parent b09f4de commit a2cc29f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Python CI

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install black pytest
- name: Install CodeQL CLI
run: |
wget https://github.com/github/codeql-action/releases/latest/download/codeql-bundle-linux64.tar.gz
tar xzf codeql-bundle-linux64.tar.gz
echo "${{ github.workspace }}/codeql" >> $GITHUB_PATH
# - name: Check linting with Black
# run: black --check .
- name: Format with Black
run: black .

- name: Run tests
run: pytest tests/

0 comments on commit a2cc29f

Please sign in to comment.