Skip to content

Check both tutorials install and parse on GitHub Actions - #4

Merged
donbagger merged 1 commit into
mainfrom
ci/github-actions
Nov 16, 2026
Merged

donbagger merged 1 commit into
mainfrom
ci/github-actions

Conversation

@donbagger

Copy link
Copy Markdown
Collaborator

Adds a workflow so a broken dependency or a syntax error in either tutorial shows up on the PR. Part of coinpaprika/devrel#42.

Neither tutorial runs without Telegram or Anthropic credentials, so CI checks what it can without them:

  • crypto-alert-bot: npm install on Node 22, then node --check on every tracked .js file. package-lock.json is gitignored, so the install resolves fresh, the same way a reader's would.
  • technical-indicators-agent: pip install -r requirements.txt on Python 3.12, then py_compile on agent.py.

GITHUB_TOKEN is limited to contents: read.

Checked locally: both pass, and a syntax error added to start.js fails the check.

Neither tutorial can run in CI without Telegram or Anthropic credentials,
so the workflow checks what it can: crypto-alert-bot installs on Node 22
and every .js file passes node --check; technical-indicators-agent installs
on Python 3.12 and agent.py compiles. Runs on pushes to main and every PR,
GITHUB_TOKEN limited to contents: read.

Checked locally: both pass; a syntax error added to start.js fails the
check.
@donbagger
donbagger merged commit 17f5bc2 into main Nov 16, 2026
2 checks passed
@donbagger
donbagger deleted the ci/github-actions branch November 16, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant