Skip to content

fixed settings removing init at root #61

fixed settings removing init at root

fixed settings removing init at root #61

Workflow file for this run

name: Python package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
os: [ubuntu-latest, macos-latest]
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 ruff pytest pytest-cov pytest-custom-exit-code
if [ -f ./server/requirements/requirements-dev.txt ]; then
pip install -r ./server/requirements/requirements-dev.txt;
else
echo "No requirements file"
fi
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
ruff --format=github --select=E9,F63,F7,F82,I --target-version=py39 .
# default set of ruff rules with GitHub Annotations
ruff --format=github --target-version=py39 . --
- name: Test with pytest
run: |
python -m pytest --suppress-no-test-exit-code --cov=server --cov-report term-missing:skip-covered -v
env:
STATIC_FILES_DIRECTORY: ./client/static
TEMPLATES_DIRECTORY: ./client/templates