Skip to content

Removing backend workflow (#1204) #938

Removing backend workflow (#1204)

Removing backend workflow (#1204) #938

Workflow file for this run

# Workflow for running backend tests for PRs and main branch
name: Backend Tests
on:
push:
branches:
- main
paths:
- 'backend/**'
pull_request:
branches:
- '**'
paths:
- 'backend/**'
defaults:
run:
working-directory: backend/
jobs:
# Runs pytest for backend code
tests:
name: pytest
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Cache Python environment
uses: actions/cache@v3
id: pip-cache
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }}
- name: Install dependencies
# need npe2 here to test preview page
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: Run unit tests
working-directory: backend
run : |
python -m pytest utils api preview