Skip to content

Commit

Permalink
Merge pull request #218 from SimonEnsemble/split-workflows
Browse files Browse the repository at this point in the history
split workflows
  • Loading branch information
SimonEnsemble committed Mar 25, 2022
2 parents 5b90b3e + 804cd5d commit 451fa02
Show file tree
Hide file tree
Showing 5 changed files with 191 additions and 165 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/CI_Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
julia_version: '1.7.2'

jobs:

unit-and-doc-tests:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: checkout commit
uses: actions/checkout@master

- name: set up Julia
uses: julia-actions/setup-julia@latest
with:
version: ${{env.julia_version}}

- name: build package
uses: julia-actions/julia-buildpkg@latest

- name: install dependencies
run: julia --project --color=yes -e 'import Pkg; Pkg.add.(["FIGlet", "Coverage"])'

- name: run tests
run: julia --project --color=yes --code-coverage -e 'import Pkg; Pkg.test(coverage=true)'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

- name: process test coverage
uses: julia-actions/julia-processcoverage@v1

- name: upload coverage report
uses: codecov/codecov-action@v2
with:
verbose: true


aqua-jl:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: checkout commit
uses: actions/checkout@v2

- name: set up Julia
uses: julia-actions/setup-julia@latest
with:
version: ${{ env.julia_version }}

- name: build package
uses: julia-actions/julia-buildpkg@latest

- name: install dependencies
run: julia --project --color=yes -e 'import Pkg; Pkg.add.(["Aqua"])'

- name: Aqua.jl
run: julia --project --color=yes ./test/aqua.jl
164 changes: 0 additions & 164 deletions .github/workflows/ci_testing.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/doc_deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Docs

on:
push:
branches: [ master ]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
julia_version: '1.7.2'


jobs:

deploy-docs:
if: github.ref_name == 'master'
runs-on: ubuntu-latest
timeout-minutes: 30

env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
DOCUMENTER_KEY: ${{secrets.DOCUMENTER_KEY}}

steps:
- name: checkout commit
uses: actions/checkout@master

- name: set up Julia
uses: julia-actions/setup-julia@latest
with:
version: ${{env.julia_version}}

- name: build package
uses: julia-actions/julia-buildpkg@latest

- name: install dependencies
run: julia --project --color=yes -e 'import Pkg; Pkg.add.(["FIGlet"])'

- name: build and deploy docs
run: julia --project --color=yes ./docs/make.jl
74 changes: 74 additions & 0 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Weekly

on:
schedule: # run at midnight pacific time on Mondays
- cron: '0 8 * * 1'
workflow_dispatch: # run on button-press in Actions tab

concurrency: # only allow the most recent workflow to execute
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env: # environment variables
julia_version: '1.7.2' # julia version to use on all runners (except cross-platform)

jobs:

cross-platform-os:
if: github.ref_name == 'master'
strategy:
fail-fast: true
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 30

steps:
- name: checkout commit
uses: actions/checkout@master

- name: set up Julia
uses: julia-actions/setup-julia@latest
with:
version: ${{ env.julia_version }}

- name: build package
uses: julia-actions/julia-buildpkg@latest

- name: install dependencies
run: julia --project --color=yes -e 'import Pkg; Pkg.add("Documenter")'
shell: bash

- name: run tests
run: julia --project --color=yes -e 'import Pkg; Pkg.test()'
shell: bash


cross-platform-julia:
if: github.ref_name == 'master'
strategy:
fail-fast: true
matrix:
julia: ['1.6.4', '1.7.0']
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: checkout commit
uses: actions/checkout@master

- name: set up Julia
uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia }}

- name: build package
uses: julia-actions/julia-buildpkg@latest

- name: install dependencies
run: julia --project --color=yes -e 'import Pkg; Pkg.add("Documenter")'
shell: bash

- name: run tests
run: julia --project --color=yes -e 'import Pkg; Pkg.test()'
shell: bash
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

| **Documentation** | **DOI** | **Build Status** | **Test Coverage** |
|:---:|:---:|:---:|:---:|
| [![](https://img.shields.io/badge/docs-dev-blue.svg)](https://simonensemble.github.io/PorousMaterials.jl/dev) [![](https://img.shields.io/badge/docs-latest-blue.svg)](https://simonensemble.github.io/PorousMaterials.jl/stable) | [![DOI](https://zenodo.org/badge/102691401.svg)](https://zenodo.org/badge/latestdoi/102691401) | [![Build](https://github.com/SimonEnsemble/PorousMaterials.jl/actions/workflows/ci_testing.yml/badge.svg)](https://github.com/SimonEnsemble/PorousMaterials.jl/actions/workflows/ci_testing.yml) | [![codecov](https://codecov.io/gh/SimonEnsemble/PorousMaterials.jl/branch/master/graph/badge.svg?token=PWsgNnxfZI)](https://codecov.io/gh/SimonEnsemble/PorousMaterials.jl) [![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl) |
| [![](https://img.shields.io/badge/docs-dev-blue.svg)](https://simonensemble.github.io/PorousMaterials.jl/dev) [![](https://img.shields.io/badge/docs-latest-blue.svg)](https://simonensemble.github.io/PorousMaterials.jl/stable) | [![DOI](https://zenodo.org/badge/102691401.svg)](https://zenodo.org/badge/latestdoi/102691401) | [![Build](https://github.com/SimonEnsemble/PorousMaterials.jl/actions/workflows/ci_testing.yml/badge.svg)](https://github.com/SimonEnsemble/PorousMaterials.jl/actions/workflows/ci_testing.yml) [![Docs](https://github.com/SimonEnsemble/PorousMaterials.jl/actions/workflows/doc_deployment.yml/badge.svg)](https://github.com/SimonEnsemble/PorousMaterials.jl/actions/workflows/doc_deployment.yml) [![Weekly](https://github.com/SimonEnsemble/PorousMaterials.jl/actions/workflows/weekly.yml/badge.svg)](https://github.com/SimonEnsemble/PorousMaterials.jl/actions/workflows/weekly.yml) | [![codecov](https://codecov.io/gh/SimonEnsemble/PorousMaterials.jl/branch/master/graph/badge.svg?token=PWsgNnxfZI)](https://codecov.io/gh/SimonEnsemble/PorousMaterials.jl) [![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl) |

A pure-[Julia](https://julialang.org/) package for classical molecular modeling of adsorption in porous crystals such as metal-organic frameworks (MOFs).

0 comments on commit 451fa02

Please sign in to comment.