Skip to content

ci(ci)

ci(ci) #1

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
unit-tests:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.9, 3.12]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Lint with black and throw error if files are changed.
run: |
black --check .
black_status=$?
if [ $black_status -ne 0 ]; then
echo "Black found some files that need to be reformatted."
exit 1
fi