Skip to content

Commit 0acfea4

Browse files
authored
ci: ✨ add GitHub Actions workflow for Conda package builds (#1736)
* ci: ✨ add GitHub Actions workflow for Conda package builds * fix: 💚 comment out dependency installation step in conda_check workflow
1 parent 66194c6 commit 0acfea4

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/conda_check.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Python Package using Conda
2+
3+
on: [push]
4+
5+
jobs:
6+
build-linux:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
package:
11+
- spectrafit
12+
- spectrafit-jupyter
13+
- spectrafit-all
14+
- spectrafit-rixs
15+
max-parallel: 5
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python 3.10
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: '3.10'
23+
- name: Add conda to system path
24+
run: |
25+
# $CONDA is an environment variable pointing to the root of the miniconda directory
26+
echo $CONDA/bin >> $GITHUB_PATH
27+
# - name: Install dependencies
28+
# run: |
29+
# conda env update --file environment.yml --name base
30+
- name: Install spectrafit package
31+
run: |
32+
conda install -c conda-forge ${{ matrix.package }}

0 commit comments

Comments
 (0)