Skip to content

Commit

Permalink
workflow: setup conda build environment from an environment file
Browse files Browse the repository at this point in the history
  • Loading branch information
javierggt committed Feb 3, 2023
1 parent 8354bb5 commit f3998b1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/package_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:
steps:
- name: Fetch
uses: actions/checkout@v2
- name: Fetch Skare3
uses: actions/checkout@v2
with:
repository: sot/skare3
ref: ${{ inputs.skare3_branch }}
path: skare3
- name: Fetch Skare3-tools
uses: actions/checkout@v2
with:
Expand All @@ -68,7 +74,7 @@ jobs:
- uses: sot/setup-miniconda@v2
with:
miniconda-version: py39_4.12.0
environment-file: build-environment.yml
environment-file: ./skare3/build-environment.yml
channels: https://ska:${{ secrets.CONDA_PASSWORD }}@cxc.cfa.harvard.edu/mta/ASPECT/ska3-conda/prime,conda-forge
- name: Env List
run: conda list
Expand Down
15 changes: 15 additions & 0 deletions build-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
channels:
- conda-forge
dependencies:
- python=3.10
- conda-forge::libarchive # libarchive from defaults is not good for mamba
- mamba
- setuptools_scm
- gitpython
- conda-build
- jinja2
- pyyaml
- numpy
- packaging
- ska_helpers
- testr

0 comments on commit f3998b1

Please sign in to comment.