-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (34 loc) · 1.17 KB
/
core.yml
File metadata and controls
39 lines (34 loc) · 1.17 KB
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
name: Paperstack Core
on:
workflow_call:
inputs:
search-arxiv:
description: "Search Arxiv?"
required: true
type: "boolean"
search-scholar:
description: "Search Semantic Scholar?"
required: true
type: "boolean"
jobs:
run-script:
runs-on: ubuntu-latest
timeout-minutes: 120 # Adding 2-hour timeout for the entire job
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 #v5.6.0
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run paperstack
run: |
python paperstack.py ${{ inputs.search-arxiv && '--search-arxiv' || '' }} ${{ inputs.search-scholar && '--search-semantic-scholar' || '' }}
env:
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }}
OPENAI_API_TOKEN: ${{ secrets.OPENAI_API_TOKEN }}