Skip to content

[Draft] Adds test cases and github workflow #2

[Draft] Adds test cases and github workflow

[Draft] Adds test cases and github workflow #2

Workflow file for this run

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.10'
- 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/