Skip to content

Commit de34d84

Browse files
authored
Merge pull request #4 from computorg/new-workflow
trying new workflow on chagneux
2 parents ee68940 + 0da6a55 commit de34d84

File tree

4 files changed

+47
-70
lines changed

4 files changed

+47
-70
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,23 @@
1-
name: build
1+
name: Main Workflows
2+
23
on:
3-
schedule:
4-
- cron: '0 0 * * 0'
54
push:
6-
branches:
7-
- master
8-
- main
9-
10-
env: # Change this if needed
11-
quarto_file: ${{ github.event.repository.name }}
12-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
5+
branches: ["main","master"]
6+
repository_dispatch:
7+
types: [custom-event]
8+
workflow_dispatch:
9+
pull_request:
10+
branches: ["main","master"]
1311

1412

1513
jobs:
16-
build-deploy:
17-
if: "!contains(github.event.head_commit.message, 'skip build')"
18-
runs-on: ubuntu-latest
19-
20-
steps:
21-
- name: Checking out repository for Github action
22-
uses: actions/checkout@v3
23-
24-
- name: Installing dependencies with Micromamba
25-
uses: mamba-org/provision-with-micromamba@main
26-
with:
27-
cache-env: true
28-
29-
- name: Set up Quarto
30-
uses: quarto-dev/quarto-actions/setup@v2
31-
with:
32-
tinytex: true
33-
version: pre-release
34-
35-
- name: Install Computo extension for Quarto
36-
run: |
37-
quarto add --no-prompt computorg/computo-quarto-extension
38-
- name: Rendering with Quarto
39-
shell: bash -l {0}
40-
41-
run: |
42-
quarto render ${{ env.quarto_file }}.qmd
43-
mkdir _build
44-
mv ${{ env.quarto_file }}.html _build/index.html
45-
mv -vf ${{ env.quarto_file }}_files figures ${{ env.quarto_file }}.pdf _build/
46-
cp environment.yml _build/
47-
touch _build/.nojekyll
14+
call_env_workflow:
15+
uses: computorg/workflows/.github/workflows/global-env.yml@main
16+
call_quartopublish_workflow:
17+
permissions:
18+
id-token: write
19+
contents: write
20+
pages: write
21+
uses: computorg/workflows/.github/workflows/publish-render.yml@main
22+
needs: call_env_workflow
4823

49-
- name: Deploying article on github pages
50-
uses: JamesIves/github-pages-deploy-action@v4
51-
with:
52-
BRANCH: gh-pages
53-
FOLDER: _build
54-
CLEAN: true

.gitignore

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
*.swp
2-
_build
3-
content.html
4-
__pycache__
5-
61
/.quarto/
2+
DS_Store
3+
.Rhistory
4+
/.luarc.json
5+
/.quarto/
6+
/*_files
7+
/*_cache
8+
/_freeze
9+
_extensions/
10+
.Rprofile
11+
published-202301-chagneux-macrolitter.html
12+
published-202301-chagneux-macrolitter.pdf
13+
_environment
14+
/.micromamba/
15+
/_siteg/
16+
/surfnet/

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Macrolitter video counting on riverbanks using state space models and moving cameras
22

3+
[![build and publish](https://github.com/computorg/published-202301-chagneux-macrolitter/actions/workflows/build.yml/badge.svg)](https://github.com/computorg/published-202301-chagneux-macrolitter/actions/workflows/build.yml)
4+
5+
Authors:
36

47
- [Mathis Chagneux](https://www.linkedin.com/in/mathis-chagneux-140245158/?originalSubdomain=fr), Telecom Paris, LTCI
58
- Sylvain Le Corff, Sorbonne Université, UMR 8001 (LPSM)
@@ -8,12 +11,8 @@
811
- Océane Lepâtre, Surfrider Foundation Europe
912
- Antoine Bruge, Surfrider Foundation Europe
1013

11-
12-
13-
[![build status](https://github.com/computorg/published-202301-chagneux-macrolitter/workflows/build/badge.svg)](https://github.com/computorg/published-202301-chagneux-macrolitter/)
14-
[![](https://img.shields.io/github/last-commit/computorg/published-202301-chagneux-macrolitter.svg)](https://github.com/computorg/published-202301-chagneux-macrolitter/commits/main)
14+
[![DOI](https://img.shields.io/badge/DOI-10.57750%2F845m--f805-034E79.svg)](https://doi.org/10.57750/845m-f805)
1515
[![HTML](https://img.shields.io/badge/article-HTML-034E79)](https://computorg.github.io/published-202301-chagneux-macrolitter/)
16-
[![10.57750/845m-f805](https://img.shields.io/badge/DOI-10.57750%2F845m--f805-034E79.svg)](https://doi.org/10.57750/845m-f805)
1716
[![review 1](https://img.shields.io/badge/review-report%201-blue)](https://github.com/computorg/published-202301-chagneux-macrolitter/issues/1)
1817
[![review 2](https://img.shields.io/badge/review-report%202-blue)](https://github.com/computorg/published-202301-chagneux-macrolitter/issues/2)
1918
[![SWH](https://archive.softwareheritage.org/badge/origin/https://github.com/computorg/published-202301-chagneux-macrolitter/)](https://archive.softwareheritage.org/browse/origin/?origin_url=https://github.com/computorg/published-202301-chagneux-macrolitter)

environment.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@ name: computo
22
channels:
33
- conda-forge
44
dependencies:
5-
- python==3.9
5+
- jupyter
6+
- numpy
7+
- matplotlib
8+
- scipy
69
- pip
10+
- pandas
11+
- tqdm
12+
- seaborn
13+
- pycocotools
14+
- filterpy
15+
- scikit-image
16+
- pykalman
717
- pip:
8-
- jupyter
9-
- numpy
10-
- matplotlib
11-
- pycocotools
12-
- scipy
1318
- opencv_python
14-
- pandas
15-
- pykalman
16-
- filterpy
17-
- scikit-image
18-
- tqdm
19-
- seaborn
2019
- pytk

0 commit comments

Comments
 (0)