forked from uber/causalml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7fa9bf
commit 0fad68f
Showing
1 changed file
with
42 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Test conda-venv install | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'envs/*.yml' | ||
- '.github/workflows/test-conda-venv-install.yml' | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.os }}${{ matrix.tf-label }}-py${{ matrix.python-version }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [37, 38, 39] | ||
tf-label: ['', '-tf'] | ||
|
||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
|
||
- name: create environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
channels: defaults | ||
auto-activate-base: false | ||
activate-environment: causalml${{ matrix.tf-label }}-py${{ matrix.python-version }} | ||
environment-file: envs/environment${{ matrix.tf-label }}-py${{ matrix.python-version }}.yml | ||
|
||
- name: check env | ||
run: | | ||
conda env export |