Skip to content

Commit

Permalink
feat: add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Dec 26, 2023
1 parent da10a8a commit a3dcf7a
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/actions/common-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Setup Environment
inputs:
CACHIX_AUTH_TOKEN:
required: true
description: "Cachix Auth Token"
SECRET_GITHUB_TOKEN:
required: true
description: "Github Secret Token"
runs:
using: "composite"
steps:
- uses: DeterminateSystems/nix-installer-action@main
with:
github_token: ${{ inputs.SECRET_GITHUB_TOKEN }}

- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Install nixci
shell: bash
run: |
nix profile install nixpkgs#nixci
nix profile install nixpkgs#just
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
15 changes: 15 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
repository:
allow_merge_commit: false
allow_rebase_merge: true
allow_squash_merge: false
default_branch: main
delete_branch_on_merge: true
description: 'A nix language configuration framework based on POP: Pure Object'
has_downloads: false
has_issues: false
has_projects: false
has_wiki: false
homepage: ''
name: CONFIGURE-ME
private: true
topics: Flops
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "CI"
on:
pull_request:
push:
branches:
- main
jobs:
jupyenv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "recursive"

- name: Setup
uses: ./.github/actions/common-setup
with:
SECRET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: nixci-jupyenv-quarto
run: |
nix profile install nixpkgs#tectonic
nix develop -c just jupyterlab example build
4 changes: 2 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

jupyterlab+example:
std //repo/jupyenv/example:run -- "$@"
jupyterlab job Flag:
std //repo/jupyenv/{{job}}:{{Flag}} -- "$@"

quarto+example:
std //repo/jupyenv/example:quarto -- render ./notebook

0 comments on commit a3dcf7a

Please sign in to comment.