Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Itay Gabbay committed Apr 4, 2023
0 parents commit 1d0dedb
Show file tree
Hide file tree
Showing 870 changed files with 76,315 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
backend/.venv
backend/.pytest_cache
backend/deepchecks_monitoring.egg-info
node_modules
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG] "
labels: 'bug'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- OS:
- Python Version:
- Deepchecks Version:

**Additional context**
Add any other context about the problem here.
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
blank_issues_enabled: true
contact_links:
- name: Deepchecks Slack Community Group
url: https://join.slack.com/t/deepcheckscommunity/shared_invite/zt-y28sjt1v-PBT50S3uoyWui_Deg5L_jg
about: Please ask and answer questions here.
- name: Deepchecks Package
url: https://github.com/deepchecks/deepchecks
about: The main Deepchecks GitHub repository
- name: Deepchecks Docs
url: https://docs.deepchecks.com/
about: Please view the full documentation here.

20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEAT]"
labels: suggestion
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Submit Question
description: Ask a general question about deepchecks
title: "QST: "
labels: [question]

body:
- type: textarea
id: question
attributes:
label: Question about deepchecks monitoring
placeholder: |
```python
# Your code here, if applicable

```
72 changes: 72 additions & 0 deletions .github/scripts/push_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#!/bin/bash
# ----------------------------------------------------------------------------
# Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com)
#
# This file is part of Deepchecks.
# Deepchecks is distributed under the terms of the GNU Affero General
# Public License (version 3 or later).
# You should have received a copy of the GNU Affero General Public License
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------------
#

set -ex


USERNAME="deepchecks-ci"


DOC_REPO="deepchecks.github.io"

cd deepchecks.github.io

GENERATED_DOC_DIR=$GITHUB_WORKSPACE/docs/build/html

# Absolute path needed because we use cd further down in this script
GENERATED_DOC_DIR=$(readlink -f "$GENERATED_DOC_DIR")

if [[ -z "$GITHUB_BASE_REF" ]]
then
REF="$GITHUB_REF_NAME"
else
REF="$GITHUB_BASE_REF"
fi

if [[ "$REF" =~ "main" ]]
then
DIR=dev
else
# Strip off .X
DIR="${REF::-2}"
fi

OUTPUT_DIR=monitoring/$DIR
MSG="Pushing the docs to $OUTPUT_DIR/ for branch: $REF, commit $GITHUB_SHA"

# check if it's a new branch
echo $OUTPUT_DIR > .git/info/sparse-checkout
if ! git show HEAD:$OUTPUT_DIR >/dev/null
then
# directory does not exist. Need to make it so sparse checkout works
mkdir -p $OUTPUT_DIR
touch $OUTPUT_DIR/index.html
git add $OUTPUT_DIR
fi
git checkout main
git reset --hard origin/main
if [ -d $OUTPUT_DIR ]
then
git rm -rf $OUTPUT_DIR/ && rm -rf $OUTPUT_DIR/
fi

cp -R $GENERATED_DOC_DIR $OUTPUT_DIR

git config user.email "itay+deepchecks-ci@deepchecks.com"
git config user.name "deepchecks-ci"
git config push.default matching

git add -f $OUTPUT_DIR/
git commit -m "$MSG" $OUTPUT_DIR
git push

echo $MSG
46 changes: 46 additions & 0 deletions .github/workflows/CI-jest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# ----------------------------------------------------------------------------
# Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com)
#
# This file is part of Deepchecks.
# Deepchecks is distributed under the terms of the GNU Affero General
# Public License (version 3 or later).
# You should have received a copy of the GNU Affero General Public License
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------------
#
name: FE Tests

on:
push:
branches:
- main
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
Jest-TSC-ESLint:
runs-on: ubuntu-latest
if: "!github.event.pull_request.draft"
steps:
- uses: actions/checkout@v1
- name: Run Linter
run: |
npm install
npm run lint
working-directory: ./frontend

- name: Run TS Checker
run: |
npm install
npm run tsc
working-directory: ./frontend

- name: Run Tests
run: |
npm install
npm test
working-directory: ./frontend
15 changes: 15 additions & 0 deletions .github/workflows/artifacts_cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "nightly artifacts cleanup"
on:
schedule:
- cron: "0 1 * * *" # every night at 1 am UTC
workflow_dispatch:

jobs:
delete-artifacts:
runs-on: ubuntu-latest
if: "!github.event.pull_request.draft"
steps:
- uses: kolpav/purge-artifacts-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
expire-in: 1day # Set this to 0 to delete all artifacts
87 changes: 87 additions & 0 deletions .github/workflows/backend-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# ----------------------------------------------------------------------------
# Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com)
#
# This file is part of Deepchecks.
# Deepchecks is distributed under the terms of the GNU Affero General
# Public License (version 3 or later).
# You should have received a copy of the GNU Affero General Public License
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------------
#
name: Build

env:
DISABLE_DEEPCHECKS_ANONYMOUS_TELEMETRY: "true"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEEPCHECKS_CI_TOKEN: ${{ secrets.DEEPCHECKS_CI_TOKEN }}
DEEPCHECKS_BUCKET: deepchecks-monitoring-ci

on:
push:
branches: [main]
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
tests:
runs-on: ubuntu-latest
if: "!github.event.pull_request.draft"
strategy:
matrix:
python-version: ["3.9"]

steps:
- uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Set Up Env
run: make env
- name: pip freeze
run: make freeze
- name: Verify migrations linearity
run: make check-migrations-liniarity
- name: Run Tests
run: make test
# coverage:
# runs-on: ubuntu-latest
# name: coveralls
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v3
# with:
# python-version: "3.9"
# - name: Set Up Env
# run: make env
# working-directory: ./backend
# - name: Run Coverage
# run: make coveralls
# working-directory: ./backend
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# tests-windows:
# runs-on: windows-latest
# strategy:
# matrix:
# python-version: ["3.8"]
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v3
# with:
# python-version: ${{ matrix.python-version }}
# - name: Run Tests
# run: make test-win
# working-directory: ./backend
Loading

0 comments on commit 1d0dedb

Please sign in to comment.