-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.91 KB
/
upload_by_date.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Upload GSEs in a date range
on:
workflow_dispatch:
inputs:
start:
description: 'start data e.g. [2020/02/24]'
required: true
end:
description: 'end data e.g. [2020/04/27]'
required: true
search_limit:
description: 'limit of GSEs to search for'
required: false
default: 300
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ "3.12" ]
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv pip install torch==2.3.1+cpu -f https://download.pytorch.org/whl/torch_stable.html --system
uv pip install bedboss --system
# uv pip install git+https://github.com/databio/bedboss.git@dev#egg=bedboss --system
- name: Print dates
run: |
echo "Hello, ${{ github.actor }}"
echo "start date: ${{ inputs.start }}"
echo "end date: ${{ inputs.end }}"
- name: Upload Project
run: bedboss geo upload-all --outfolder /tmp/out --start-date ${{ inputs.start }} --end-date ${{ inputs.end }} --no-use-skipper --lite --bedbase-config config.yaml --no-use-skipper --no-preload --search-limit ${{ inputs.search_limit }}
env:
POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
QDRANT_HOST: ${{ secrets.QDRANT_HOST }}
QDRANT_API_KEY: ${{ secrets.QDRANT_API_KEY }}
AWS_ENDPOINT_URL: ${{ secrets.AWS_ENDPOINT_URL }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}