Skip to content

Feat : docker initialised : backend (#101) #27

Feat : docker initialised : backend (#101)

Feat : docker initialised : backend (#101) #27

Workflow file for this run

name: API Tests
on:
push:
branches: [ develop ]
paths:
- backend/**
- .github/workflows/api-build.yml
pull_request:
branches: [ develop ]
paths:
- backend/**
- .github/workflows/api-build.yml
env:
DJANGO_SECRET: random-key
defaults:
run:
shell: bash
working-directory: backend
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.10"]
steps:
- 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
- name: Run Tests
run: |
pytest --cache-clear
flake8-lint:
runs-on: ubuntu-latest
name: Lint
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
max-line-length: "100"
path: "backend"