Skip to content

Commit

Permalink
refactor: simplify, move frameworks, etc. (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostmygithubaccount authored Aug 24, 2024
1 parent 7b555a7 commit 6e9d667
Show file tree
Hide file tree
Showing 62 changed files with 1,849 additions and 2,613 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: docs

permissions:
contents: write

on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'justfile'
- 'website/**'
- 'dev-requirements.txt'
- '.github/workflows/docs.yaml'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0

- uses: extractions/setup-just@v1

- uses: actions/setup-python@v4
with:
python-version: 3.12

- uses: quarto-dev/quarto-actions/setup@v2

- name: install requirements
run: |
pip install uv
just setup
- name: build site
run: |
. .venv/bin/activate
just docs-build
- name: deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: website/_output
44 changes: 44 additions & 0 deletions .github/workflows/etl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: etl

on:
workflow_dispatch:
schedule:
- cron: "0 9 * * *"

jobs:

ingest-etl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0

- uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCLOUD_JSON }}

- uses: extractions/setup-just@v1

- uses: actions/setup-python@v4
with:
python-version: 3.12

- uses: quarto-dev/quarto-actions/setup@v2

- name: install requirements
run: |
pip install uv
just setup
- name: ingest and etl
run: |
. .venv/bin/activate
ia ingest
ia etl
env:
BQ_PROJECT_ID: voltrondata-demo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZULIP_KEY: ${{ secrets.ZULIP_KEY }}
GOAT_TOKEN: ${{ secrets.GOAT_TOKEN }}
19 changes: 13 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
.env
.venv
venv
data
target
.streamlit/secrets.toml
*.ddb*
.env
datalake

.quarto
pres.html
pres.ipynb
pres_files

_output

dist

tmp*
16 changes: 0 additions & 16 deletions .streamlit/config.toml

This file was deleted.

38 changes: 0 additions & 38 deletions config.toml

This file was deleted.

26 changes: 0 additions & 26 deletions dag/__init__.py

This file was deleted.

46 changes: 0 additions & 46 deletions dag/assets/__init__.py

This file was deleted.

20 changes: 0 additions & 20 deletions dag/assets/extract/backends.py

This file was deleted.

15 changes: 0 additions & 15 deletions dag/assets/extract/docs.py

This file was deleted.

72 changes: 0 additions & 72 deletions dag/assets/extract/github.py

This file was deleted.

17 changes: 0 additions & 17 deletions dag/assets/extract/pypi.py

This file was deleted.

24 changes: 0 additions & 24 deletions dag/assets/extract/zulip.py

This file was deleted.

Empty file removed dag/assets/load/__init__.py
Empty file.
Loading

0 comments on commit 6e9d667

Please sign in to comment.