Skip to content

Commit

Permalink
Update GHA versions; minor formatting of GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterius committed Oct 23, 2024
1 parent abb776c commit f895385
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 20 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/canvas-upload.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
name: canvas-upload
name: Canvas upload

on:
workflow_dispatch:
branches:
- main
- devel
push:
paths:
- 'pages/tools-for-reproducible-research.md'
- 'pages/upload-page-to-canvas.sh'
branches:
- main
- devel
paths:
- 'pages/tools-for-reproducible-research.md'
- 'pages/upload-page-to-canvas.sh'

jobs:
upload:
runs-on: ubuntu-latest
container: pandoc/latex
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Upload pages
env:
API_TOKEN: ${{ secrets.CANVAS_API_TOKEN }}
run: |
bash pages/upload-page-to-canvas.sh pages/tools-for-reproducible-research.md $API_TOKEN
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Upload landing page to Canvas
env:
API_TOKEN: ${{ secrets.CANVAS_API_TOKEN }}
run: |
bash pages/upload-page-to-canvas.sh pages/tools-for-reproducible-research.md $API_TOKEN
6 changes: 4 additions & 2 deletions .github/workflows/docker-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
docker-build-and-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4

- name: Docker build
run: |
docker build -t my_docker_project -f tutorials/containers/Dockerfile tutorials/containers/
docker run --rm my_docker_project
docker run --rm my_docker_project
15 changes: 9 additions & 6 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ on:
pull_request:
branches:
- main
- devel

jobs:
install:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest ]
os: [macos-latest, ubuntu-latest]
env: [snakemake, nextflow, jupyter, quarto]
include:
- env: snakemake
Expand All @@ -26,16 +27,18 @@ jobs:
- env: quarto
cmd: mamba install -c conda-forge quarto && mamba install -c conda-forge deno && export QUARTO_DENO=$(which deno) && quarto render tutorials/quarto/quarto-tutorial-example.qmd --to html
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/[email protected]
- name: Checkout
uses: actions/checkout@v4

- name: Conda setup
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: ${{ matrix.env }}-env
environment-file: tutorials/${{ matrix.env }}/environment.yml
use-mamba: true
channel-priority: strict
- name: Test ${{ matrix.env }}

- name: Test ${{ matrix.env }} Conda environment
shell: bash -l {0}
run: |
conda list
Expand Down

0 comments on commit f895385

Please sign in to comment.