Skip to content

Installation updates to README and .github/workflows #4

Installation updates to README and .github/workflows

Installation updates to README and .github/workflows #4

name: Test conda-venv install
on:
push:
paths:
- 'envs/*.yml'
- '.github/workflows/test-conda-venv-install.yml'
jobs:
build:

Check failure on line 10 in .github/workflows/test-conda-venv-install.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-conda-venv-install.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
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: echo conda config
run: |
conda info
conda list
conda config --show-sources
conda config --show
- name: Build
run: |
pip install -U pip
pip install -U setuptools
python -m pip install .[test]
python setup.py build_ext --inplace
- name: Test with pytest
run: pytest -vs tests/ --cov causalml/
- name: echo conda env
run: |
conda env export