Skip to content

Queue and upload BEDbase projects #145

Queue and upload BEDbase projects

Queue and upload BEDbase projects #145

name: Queue and upload BEDbase projects
on:
schedule:
# run every 2d day at 10:00
- cron: '0 10 1/2 * *'
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: Add to the queue
run: python metageo_pephub/main.py --target bedbase --period 2 --function run_queuer --host ${{ secrets.HOST }} --db ${{ secrets.DB }} --user ${{ secrets.USER }} --password ${{ secrets.PASSWORD }}
- name: Add to the database
run: python metageo_pephub/main.py --target bedbase --function run_uploader --host ${{ secrets.HOST }} --db ${{ secrets.DB }} --user ${{ secrets.USER }} --password ${{ secrets.PASSWORD }}