Skip to content

Commit

Permalink
Make it a script (#14)
Browse files Browse the repository at this point in the history
* pin this until the segfault is fixed

* lock the env to avoid regressions

* make it a script

* add dependabot

* run the script instead of the notebook

* add a PR test

* fix syntaxe warning

* add env name
  • Loading branch information
ocefpaf authored Feb 1, 2024
1 parent af81172 commit 635bf22
Show file tree
Hide file tree
Showing 7 changed files with 9,821 additions and 2,891 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# See https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/keeping-your-actions-up-to-date-with-dependabot

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
labels:
- "Bot"
11 changes: 6 additions & 5 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Micromamba
- name: Setup Micromamba Python
uses: mamba-org/setup-micromamba@v1
with:
environment-name: MAP
init-shell: bash
environment-file: environment.yml
environment-file: conda-lock.yml

- name: Execute Notebook
- name: Execute the code
shell: bash -l {0}
run: |
jupyter nbconvert --to notebook --execute map-of-activities.ipynb --output=map-of-activities-output.ipynb
python map-of-activities.py
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Full Tests

on:
pull_request:
push:
branches: [main]

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Micromamba Python
uses: mamba-org/setup-micromamba@v1
with:
environment-name: MAP
init-shell: bash
environment-file: conda-lock.yml

- name: Tests
shell: bash -l {0}
run: |
python map-of-activities.py
Loading

0 comments on commit 635bf22

Please sign in to comment.