-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.5 KB
/
rss-subscribe.yaml
File metadata and controls
44 lines (35 loc) · 1.5 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
40
41
42
43
44
on:
# see: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
# NOTE: used to schedule every day until the Feedbin browser extension made this whole batch workflow unnecessary
workflow_dispatch: # allow manual triggering
jobs:
rss-subscribe:
runs-on: ubuntu-latest
steps:
# See: https://github.com/actions/checkout
- uses: actions/checkout@v4
# See: https://docs.astral.sh/uv/guides/integration/github/
- name: Install uv and enable caching
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: uv.lock
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
- name: Install the project
run: uv sync --all-extras --dev
# See: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
- name: Set PYTHONPATH
run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV
# TODO: narrow to the relevant tests for this action
# - name: Run tests
# run: uv run pytest tests
# See: https://github.com/1Password/install-cli-action
- name: Install 1Password CLI
uses: 1password/install-cli-action@v1
- name: Subscribe to unprocessed URLs in Google Sheet
run: uv run rss/sheets.py
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}