Skip to content

Caddy server setup

Caddy server setup #34

name: Dojo API Unit Tests
on:
pull_request:
types: [ opened, synchronize ]
paths:
- api/**
env:
PYTEST_ADDOPTS: "--color=yes"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python 3.9
uses: actions/setup-python@v4
working-directory: ./api

Check failure on line 20 in .github/workflows/api_unit_pytests.yml

View workflow run for this annotation

GitHub Actions / Dojo API Unit Tests

Invalid workflow file

The workflow is not valid. .github/workflows/api_unit_pytests.yml (Line: 20, Col: 9): Unexpected value 'working-directory'
with:
cache: pip
cache-dependency-path: requirements.txt
python-version: 3.9
- name: Install dependencies
working-directory: ./api
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install dependencies tests
working-directory: ./api
run: |
pip install pytest
- name: Run tests
working-directory: ./api
run: pytest -vvs