-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better isolation of environment compared to relying on setup python actions and activating various base environments on shell login. See github.com/actions/setup-python/issues/162
- Loading branch information
1 parent
a664efe
commit e4814d5
Showing
1 changed file
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,25 +3,34 @@ on: | |
push: | ||
branches: | ||
- ci | ||
|
||
env: | ||
CONDA: /epyc/opt/anaconda-2019 | ||
|
||
jobs: | ||
test-build: | ||
name: Test build | ||
runs-on: self-hosted | ||
defaults: | ||
run: | ||
shell: bash -leo pipefail {0} | ||
steps: | ||
- name: Link to a more modern git | ||
run: echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
- name: Setup miniconda | ||
uses: conda-incubator/[email protected] | ||
with: | ||
activate-environment: kbmod_build_test | ||
python-version: '3.10' | ||
remove-profiles: false | ||
- name: Get newer git | ||
run: | | ||
conda init bash -d -v | ||
conda install git | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Set-up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
submodules: recursive | ||
- name: Setup nvcc | ||
run: echo "/usr/local/cuda-11.8/bin" >> $GITHUB_PATH | ||
- name: Build KBMoD | ||
run: python -m pip install . | ||
|
||
|
||
|
||
|
||
run: | | ||
python -m pip install . |