-
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.
- Loading branch information
Showing
44 changed files
with
3,787 additions
and
7,957 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
**/node_modules/** | ||
**/.next/** | ||
tsconfig.json | ||
*.min.js |
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,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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 |
---|---|---|
|
@@ -18,10 +18,10 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].5 | ||
- name: Install dependencies, build docs and coverage report | ||
run: python3 -m pip install --upgrade pip && python3 -m pip install poetry | ||
- uses: actions/setup-python@v5.0.0 | ||
- uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: '3.9' | ||
cache: 'poetry' | ||
|
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 |
---|---|---|
|
@@ -21,12 +21,12 @@ jobs: | |
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].5 | ||
with: | ||
submodules: 'true' | ||
- name: Install dependencies, build docs and coverage report | ||
run: python3 -m pip install --upgrade pip && python3 -m pip install poetry | ||
- uses: actions/setup-python@v5.0.0 | ||
- uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: '3.9' | ||
cache: 'poetry' | ||
|
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 |
---|---|---|
|
@@ -36,14 +36,14 @@ jobs: | |
integration-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].5 | ||
- name: Install poetry | ||
run: python3 -m pip install --upgrade pip && python3 -m pip install poetry | ||
- uses: actions/setup-python@v5.0.0 | ||
- uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: '3.9' | ||
- name: Setup redis | ||
uses: supercharge/redis-github-action@1.2.0 | ||
uses: supercharge/redis-github-action@1.8.0 | ||
with: | ||
redis-version: 7.2.4 | ||
- name: Setup MongoDB | ||
|
@@ -56,13 +56,30 @@ jobs: | |
source $(poetry env info --path)/bin/activate | ||
poetry install --with docs,test | ||
coverage run -m pytest florist/tests/integration && coverage xml && coverage report -m | ||
# - name: Upload coverage to Codecov | ||
# uses: Wandalen/[email protected] | ||
- name: Upload python coverage to Codecov | ||
uses: Wandalen/[email protected] | ||
with: | ||
action: codecov/[email protected] | ||
with: | | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
name: codecov-umbrella | ||
fail_ci_if_error: true | ||
attempt_limit: 5 | ||
attempt_delay: 30000 | ||
|
||
# TODO enable this once we have integration tests for the UI | ||
# - name: Setup yarn | ||
# uses: mskelton/setup-yarn@v1 | ||
# - name: Install nextjs dependencies and check code | ||
# run: | | ||
# yarn | ||
# yarn integration-test | ||
# - name: Upload js coverage to Codecov | ||
# uses: Wandalen/[email protected] | ||
# with: | ||
# action: codecov/[email protected] | ||
# with: | | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# file: ./coverage.xml | ||
# name: codecov-umbrella | ||
# fail_ci_if_error: true | ||
# attempt_limit: 5 | ||
|
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 |
---|---|---|
|
@@ -12,16 +12,16 @@ jobs: | |
run: | | ||
sudo apt-get update | ||
sudo apt-get install libcurl4-openssl-dev libssl-dev | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].5 | ||
- name: Install poetry | ||
run: python3 -m pip install --upgrade pip && python3 -m pip install poetry | ||
- uses: actions/setup-python@v5.0.0 | ||
- uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: '3.9' | ||
- name: Build package | ||
run: poetry build | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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 |
---|---|---|
|
@@ -26,18 +26,21 @@ jobs: | |
run-code-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].5 | ||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
- uses: actions/setup-python@v5.0.0 | ||
- uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: '3.9' | ||
cache: 'poetry' | ||
- name: Setup yarn | ||
uses: mskelton/setup-yarn@v1 | ||
- name: Install dependencies and check code | ||
run: | | ||
yarn | ||
poetry env use '3.9' | ||
source .venv/bin/activate | ||
poetry install --with test --all-extras | ||
|
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 |
---|---|---|
|
@@ -36,26 +36,42 @@ jobs: | |
unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].5 | ||
- name: Install poetry | ||
run: python3 -m pip install --upgrade pip && python3 -m pip install poetry | ||
- uses: actions/setup-python@v5.0.0 | ||
- uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: '3.9' | ||
- name: Install dependencies and check code | ||
cache: 'poetry' | ||
- name: Install python dependencies and check code | ||
run: | | ||
poetry env use '3.9' | ||
source $(poetry env info --path)/bin/activate | ||
poetry install --with docs,test | ||
coverage run -m pytest florist/tests/unit && coverage xml && coverage report -m | ||
# - name: Upload coverage to Codecov | ||
# uses: Wandalen/[email protected] | ||
# with: | ||
# action: codecov/[email protected] | ||
# with: | | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# file: ./coverage.xml | ||
# name: codecov-umbrella | ||
# fail_ci_if_error: true | ||
# attempt_limit: 5 | ||
# attempt_delay: 30000 | ||
- name: Upload python coverage to Codecov | ||
uses: Wandalen/[email protected] | ||
with: | ||
action: codecov/[email protected] | ||
with: | | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
name: codecov-umbrella | ||
fail_ci_if_error: true | ||
attempt_limit: 5 | ||
attempt_delay: 30000 | ||
- name: Setup yarn | ||
uses: mskelton/setup-yarn@v1 | ||
- name: Install nextjs dependencies and check code | ||
run: | | ||
yarn | ||
yarn unit-test | ||
- name: Upload js coverage to Codecov | ||
uses: Wandalen/[email protected] | ||
with: | ||
action: codecov/[email protected] | ||
with: | | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
name: codecov-umbrella | ||
fail_ci_if_error: true | ||
attempt_limit: 5 | ||
attempt_delay: 30000 |
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,2 @@ | ||
florist/app/assets/css/material-dashboard.css | ||
*.min.js |
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,3 @@ | ||
{ | ||
"tabWidth": 4 | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""FLorist client FastAPI endpoints.""" | ||
|
||
import json | ||
import logging | ||
import uuid | ||
|
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,4 +1,5 @@ | ||
"""Common functions and definitions for clients.""" | ||
|
||
from enum import Enum | ||
from typing import List | ||
|
||
|
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,4 +1,5 @@ | ||
"""Implementation of the MNIST client and model.""" | ||
|
||
from typing import Tuple | ||
|
||
import torch | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Launcher functions for local clients and servers.""" | ||
|
||
import logging | ||
import sys | ||
import time | ||
|
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,4 +1,5 @@ | ||
"""Definitions for the MNIST model.""" | ||
|
||
from typing import List | ||
|
||
import torch | ||
|
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,4 +1,5 @@ | ||
"""General functions and definitions for monitoring.""" | ||
|
||
from pathlib import Path | ||
|
||
|
||
|
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
Oops, something went wrong.