Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda builds #293

Merged
merged 30 commits into from
Sep 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
032a1c7
conda builds
wxtim Sep 1, 2021
8a904a5
conda builds
wxtim Sep 1, 2021
af98ea7
Update src/index.rst
wxtim Sep 6, 2021
1b0c61c
Apply suggestions from code review
wxtim Sep 6, 2021
8aef4c7
Merge branch 'master' of github.com:wxtim/cylc-doc into env.yml
wxtim Sep 6, 2021
9ad666e
slimmed basic.yml right down.
wxtim Sep 6, 2021
f11c6a5
add python versions to basic example
wxtim Sep 6, 2021
308baa9
correct yml file
wxtim Sep 6, 2021
6824114
fixed logic of envtest.yml to only require separate env files for eac…
wxtim Sep 6, 2021
723a2e1
fixed logic of envtest.yml to only require separate env files for eac…
wxtim Sep 6, 2021
e62f12a
fixed logic of envtest.yml to only require separate env files for eac…
wxtim Sep 6, 2021
b57c3f9
fix over long env files
wxtim Sep 6, 2021
eca163d
stufgf
wxtim Sep 6, 2021
1d34267
deleted old flder
wxtim Sep 6, 2021
b371603
Update .github/workflows/conda-build-test.yml
wxtim Sep 6, 2021
9a29751
Response to review by @osanders:
wxtim Sep 6, 2021
9f0bdfb
Merge branch 'master' of github.com:wxtim/cylc-doc into env.yml
wxtim Sep 6, 2021
5cb3665
fix schedule
wxtim Sep 6, 2021
142862d
added python dep to live installs
wxtim Sep 6, 2021
86c2bf3
Update .github/workflows/conda-build-test.yml
wxtim Sep 6, 2021
0c83fcd
move example envs to reference section
wxtim Sep 6, 2021
3e60edf
fix test build envs
wxtim Sep 6, 2021
c2057ca
Fix breakage
wxtim Sep 6, 2021
97372ab
fixed some envs
wxtim Sep 6, 2021
7abb117
removed section about building conda envs for cylc using pip
wxtim Sep 6, 2021
a7e6ee3
fix table render
wxtim Sep 6, 2021
a7cdffd
Response to review
wxtim Sep 7, 2021
a8aeb80
Update src/reference/environments/basic.yml
wxtim Sep 8, 2021
7ff3551
uniform docstrings wrt to UI/GUI
wxtim Sep 8, 2021
3d7d390
merge
wxtim Sep 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/conda-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: conda builds

on:
pull_request:
paths:
- '.github/workflows/conda-build-test.yml'
- 'src/reference/environments/*.ya?ml'
schedule:
- cron: '17 22 * * 6'
workflow_dispatch:

jobs:
test_conda_install:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
case: [basic, gui, rose]
python: [3.7, 3.8, 3.9]
steps:
- name: checkout cylc-doc
uses: actions/checkout@v2

- name: build conda env ${{matrix.case}}
run: |
# Done like this so that we test all versions of python,
# and offer users examples of basic with all three versions
# but don't have to have three env.yml files for each case.
if [[ -f src/reference/environments/${{matrix.case}}-${{matrix.python}}.yml ]]; then
conda env create -f \
src/reference/environments/${{matrix.case}}-${{matrix.python}}.yml
else
conda env create -f \
src/reference/environments/${{matrix.case}}.yml \
python==${{matrix.python}}
fi
7 changes: 7 additions & 0 deletions src/reference/environments/basic-3.7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: cylc-8-basic-python-3.7
# Cylc 8 without UI Server.
channels:
- conda-forge
dependencies:
- python=3.7
- cylc-flow=8.*
7 changes: 7 additions & 0 deletions src/reference/environments/basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: cylc-8-basic
# Cylc 8 without the UI Server.

channels:
- conda-forge
dependencies:
- cylc-flow=8.*
43 changes: 43 additions & 0 deletions src/reference/environments/example_envs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Example Environments
====================

A set of example Conda Cylc Environments:

.. csv-table::
:header: environment, cylc, cylc uiserver, rose

`Cylc 8 basic`_, ✔️, ,
`Cylc 8 with UI Server`_, ✔️,✔️,
`Cylc 8 with Rose`_, ✔️,✔️,✔️

Example installation commands:

.. code-block:: bash

conda env create -f path/to/env.yml --name "name of env"


Cylc 8 basic
------------

This environment contains the core workflow engine and shows how to specify a particular version of Python.

.. literalinclude:: basic-3.7.yml
:language: YAML

Cylc 8 with UI Server
---------------------

An environment containing the workflow engine and the GUI components.

.. literalinclude:: gui.yml
:language: YAML

Cylc 8 with Rose
----------------

In addition to the GUI components also add the Cylc-Rose plugin, and the
Rose configuration management system.

.. literalinclude:: rose.yml
:language: YAML
7 changes: 7 additions & 0 deletions src/reference/environments/gui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: cylc-8-with-gui
# Cylc 8 and the also the UI Server (which provides the web GUI).
channels:
- conda-forge
dependencies:
- cylc-flow
- cylc-uiserver
10 changes: 10 additions & 0 deletions src/reference/environments/rose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: cylc-8-with-rose
# Cylc 8, the UI Server (which provides the web GUI).
# and the Cylc Rose plugin (which requires metomi-rose).
channels:
- conda-forge
dependencies:
- cylc-flow
- cylc-rose
- cylc-uiserver
- metomi-rose
1 change: 1 addition & 0 deletions src/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ Reference

config/index
api/index
environments/example_envs.rst
dev-history-major-changes