Skip to content

Check failed cycles and samples #241

Check failed cycles and samples

Check failed cycles and samples #241

name: Check failed cycles and samples
on:
schedule:
# run every day at 11:00
- cron: '0 11 * * *'
workflow_dispatch:
inputs: null
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ "3.10" ]
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dev dependencies
run: if [ -f requirements/requirements.txt ]; then pip install -r requirements/requirements.txt; fi
- name: Check 1 cycle before
run: python metageo_pephub/main.py --target geo --function run_checker --host ${{ secrets.HOST }} --db ${{ secrets.DB }} --user ${{ secrets.USER }} --password ${{ secrets.PASSWORD }} --cycle-count 1
- name: Check 2 cycle before
run: python metageo_pephub/main.py --target geo --function run_checker --host ${{ secrets.HOST }} --db ${{ secrets.DB }} --user ${{ secrets.USER }} --password ${{ secrets.PASSWORD }} --cycle-count 2
- name: Check 3 cycle before
run: python metageo_pephub/main.py --target geo --function run_checker --host ${{ secrets.HOST }} --db ${{ secrets.DB }} --user ${{ secrets.USER }} --password ${{ secrets.PASSWORD }} --cycle-count 3
- name: Check 4 cycle before
run: python metageo_pephub/main.py --target geo --function run_checker --host ${{ secrets.HOST }} --db ${{ secrets.DB }} --user ${{ secrets.USER }} --password ${{ secrets.PASSWORD }} --cycle-count 4
- name: Check 5 cycle before
run: python metageo_pephub/main.py --target geo --function run_checker --host ${{ secrets.HOST }} --db ${{ secrets.DB }} --user ${{ secrets.USER }} --password ${{ secrets.PASSWORD }} --cycle-count 5
- name: Keeplive, so git won't suspend after 60 days
uses: gautamkrishnar/keepalive-workflow@v1