Skip to content

Merge pull request #23 from camille-readbean/study_plan_interface #74

Merge pull request #23 from camille-readbean/study_plan_interface

Merge pull request #23 from camille-readbean/study_plan_interface #74

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Test and check ezConnect
on:
push:
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11.3"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
pip install -r backend/requirements.txt
- name: Lint with ruff
continue-on-error: true
run: |
# stop the build if there are Python syntax errors or undefined names
ruff --format=github --target-version=py311 --exit-zero .
- name: Prepare test database
run: |
./backend/tests/setUpTestDB.sh
- name: Test with pytest
run: |
export MAILERCFW_API_KEY='${{ secrets.MAILERCFW_API_KEY }}'
cd backend/
python -m pytest -vv
cd ..
- name: Lint JS files
continue-on-error: true
run: |
cd frontend
npm install
npx eslint src