implement basic testing fixtures and linting
Some checks failed
Build and push docker image / Build (pull_request) Successful in 1m40s
Run linting on the backend code / Build (pull_request) Failing after 10s
Build and release APK / Build APK (pull_request) Has been cancelled

This commit is contained in:
2024-08-12 12:44:51 +02:00
parent bea3a65fec
commit acc7631c55
18 changed files with 404 additions and 720 deletions

View File

@@ -0,0 +1,27 @@
on:
pull_request:
branches:
- main
paths:
- backend/**
name: Run linting on the backend code
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: https://gitea.com/actions/checkout@v4
- name: Install dependencies
run: |
apt-get update && apt-get install -y python3 python3-pip
# only install dev-packages
pipenv install --categories=dev-packages
working-directory: backend
- name: Run linter
run: pipenv run pylint src
working-directory: backend

View File

@@ -0,0 +1,27 @@
on:
pull_request:
branches:
- main
paths:
- backend/**
name: Run linting on the backend code
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: https://gitea.com/actions/checkout@v4
- name: Install dependencies
run: |
apt-get update && apt-get install -y python3 python3-pip
# install all packages, including dev-packages
pipenv install --dev
working-directory: backend
- name: Run linter
run: pipenv run pytest src
working-directory: backend