This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from SELab-2/develop
Release milestone 2
- Loading branch information
Showing
361 changed files
with
15,646 additions
and
1,596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,78 @@ | ||
name: Backend CI | ||
on: | ||
pull_request: | ||
push: | ||
paths: | ||
- ".github/workflows/backend.yml" | ||
- "backend/**" | ||
- "!**.md" | ||
branches: | ||
- master | ||
- develop | ||
|
||
defaults: | ||
run: | ||
working-directory: backend | ||
|
||
jobs: | ||
Dependencies: | ||
runs-on: self-hosted | ||
container: python:3.10.2-alpine | ||
runs-on: ubuntu-latest | ||
container: python:3.10.2-slim-bullseye | ||
steps: | ||
- run: apk add --no-cache tar | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: /usr/local/lib/python3.10/site-packages | ||
key: ${{ runner.os }}-site-packages-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }} | ||
key: venv-${{ runner.os }}-bullseye-3.10.2-v2-${{ hashFiles('**/poetry.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-site-packages- | ||
venv-${{ runner.os }}-bullseye-3.10.2-v2 | ||
- if: steps.cache.outputs.cache-hit != 'true' | ||
run: apk add gcc musl-dev build-base mariadb-dev libffi-dev | ||
run: apt update | ||
|
||
- if: steps.cache.outputs.cache-hit != 'true' | ||
run: pip install -r requirements.txt | ||
run: apt install -y build-essential libmariadb-dev | ||
|
||
- if: steps.cache.outputs.cache-hit != 'true' | ||
run: pip install -r requirements-dev.txt | ||
run: pip install -U pip poetry | ||
|
||
- if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
python -m poetry export --dev --format requirements.txt --output requirements.txt --without-hashes | ||
pip install -r requirements.txt | ||
Test: | ||
needs: [Dependencies] | ||
runs-on: self-hosted | ||
container: python:3.10.2-alpine | ||
runs-on: ubuntu-latest | ||
container: python:3.10.2-slim-bullseye | ||
steps: | ||
- run: apk add --no-cache tar | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: /usr/local/lib/python3.10/site-packages | ||
key: ${{ runner.os }}-site-packages-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }} | ||
key: venv-${{ runner.os }}-bullseye-3.10.2-v2-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- run: python -m pytest | ||
|
||
Lint: | ||
needs: [Test] | ||
runs-on: self-hosted | ||
container: python:3.10.2-alpine | ||
runs-on: ubuntu-latest | ||
container: python:3.10.2-slim-bullseye | ||
steps: | ||
- run: apk add --no-cache tar | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: /usr/local/lib/python3.10/site-packages | ||
key: ${{ runner.os }}-site-packages-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }} | ||
key: venv-${{ runner.os }}-bullseye-3.10.2-v2-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- run: python -m pylint src tests | ||
- run: python -m pylint src | ||
|
||
Type: | ||
needs: [Test] | ||
runs-on: self-hosted | ||
container: python:3.10.2-alpine | ||
runs-on: ubuntu-latest | ||
container: python:3.10.2-slim-bullseye | ||
steps: | ||
- run: apk add --no-cache tar | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: /usr/local/lib/python3.10/site-packages | ||
key: ${{ runner.os }}-site-packages-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }} | ||
key: venv-${{ runner.os }}-bullseye-3.10.2-v2-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- run: python -m mypy src tests | ||
- run: python -m mypy src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""empty message | ||
Revision ID: 1862d7dea4cc | ||
Revises: 8c97ecc58e5f, a4a047b881db | ||
Create Date: 2022-04-08 16:05:01.649808 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '1862d7dea4cc' | ||
down_revision = ('8c97ecc58e5f', 'a4a047b881db') | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
pass | ||
|
||
|
||
def downgrade(): | ||
pass |
Oops, something went wrong.