Skip to content

Commit

Permalink
ci: Add healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Sep 4, 2024
1 parent d50d9cf commit ac814f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
- run: pixi run plugins
working-directory: ./stats/steampipe/
# FIXME Throw error if failure to connect
- run: pixi run github
- run: pixi run github_hc
working-directory: ./stats/steampipe/
- run: pixi run twitter
- run: pixi run twitter_hc
working-directory: ./stats/steampipe/
# TODO - run: pixi run slack
- run: pixi run upload_hf
Expand Down
3 changes: 3 additions & 0 deletions stats/steampipe/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
![GitHub Stats](https://img.shields.io/endpoint?url=https%3A%2F%2Fhealthchecks.io%2Fb%2F2%2Fd2febac8-1214-4c89-aa9c-a3f2c77b3995.shields)
![Twitter Stats](https://img.shields.io/endpoint?url=https%3A%2F%2Fhealthchecks.io%2Fb%2F2%2F5fd77e2f-16ea-4514-bd06-a49e710aab37.shields)

## Notes

https://steampipe.io/docs/integrations/gitpod
Expand Down
2 changes: 2 additions & 0 deletions stats/steampipe/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ version = "0.1.0"
[tasks]
plugins = "steampipe plugin install github twitter --progress=false"
twitter = "steampipe query twitter_users.sql --output json | jq '.rows[0].public_metrics + {timestamp: now|tostring}' >> hf_stats/steampipe/twitter_users.json"
twitter_hc = { cmd = "curl -fsS -m 10 --retry 5 -o /dev/null https://hc-ping.com/39c783d5-b697-4eb5-b677-05bae13a2490", depends_on = ["twitter"] }
github = "steampipe query github.sql --output json | jq '.rows[0] + {timestamp: now|tostring}' >> hf_stats/steampipe/github.json"
github_hc = { cmd = "curl -fsS -m 10 --retry 5 -o /dev/null https://hc-ping.com/017c8a09-9531-4206-a479-aa51a2209931", depends_on = ["github"] }
download_hf = "huggingface-cli download nf-core/stats --local-dir hf_stats --repo-type dataset --quiet"
upload_hf = "huggingface-cli upload nf-core/stats hf_stats --repo-type dataset --quiet"

Expand Down

0 comments on commit ac814f3

Please sign in to comment.