[Draft] Adds test cases and github workflow #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |