Skip to content

fix: GX-1.2

fix: GX-1.2 #246

Workflow file for this run

name: Backend Lint & Test
on:
pull_request:
jobs:
format-check-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black
- name: Analysing the code with Black
run: black ./ --check --diff
lint-check-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: pylint ./
data-check-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Analysing the database with great expectations
run: pytest -m data
test-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Run tests (except data)
run: pytest -m "not data" --cov=. --order-dependencies
env:
PYTHONPATH: .
SETTINGS_FILE: test-settings.ini