Skip to content

Commit

Permalink
Backup Data until May
Browse files Browse the repository at this point in the history
  • Loading branch information
sebaxtian committed Jun 24, 2023
1 parent 500c68c commit 4ad4c92
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/tangara-test-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Tangara Test Pipeline

on:
push:
branches:
- "master"
- "dev"
pull_request:
branches:
- "master"
- "dev"

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f src/requirements.txt ]; then pip install -r src/requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest --cov-fail-under=90
4 changes: 2 additions & 2 deletions backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ echo "Running Tangara Pipeline ..."
# Clean Backup Data
rm -rfv data/09_backup/*

NOWCAST_DATETIME='2022-10-03'
START_DATETIME='2022-10-01'
NOWCAST_DATETIME='2023-05-31'
START_DATETIME='2023-05-01'
echo 'NOWCAST_DATETIME: '$NOWCAST_DATETIME
echo 'START_DATETIME: '$START_DATETIME

Expand Down
2 changes: 1 addition & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ nbstripout~=0.4
pytest-cov==3.0.0
pytest-mock==1.13.0
pytest==6.2.5
kedro-viz==4.6.0
kedro-viz
geohash2==1.1
matplotlib==3.5.3
seaborn==0.11.2
Expand Down

0 comments on commit 4ad4c92

Please sign in to comment.