diff --git a/.github/workflows/python-app.yml b/.github/workflows/ci-test.yml similarity index 60% rename from .github/workflows/python-app.yml rename to .github/workflows/ci-test.yml index 24742f7..c4e2bbd 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/ci-test.yml @@ -10,22 +10,39 @@ on: branches: [ main ] jobs: - build: - + lsst-tests: + name: tests + strategy: + matrix: + pyver: [3.8] runs-on: ubuntu-latest - steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.0 + with: + access_token: ${{ github.token }} - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 + - uses: conda-incubator/setup-miniconda@v2 with: - python-version: "3.8" + python-version: ${{ matrix.pyver }} + channels: conda-forge,defaults + channel-priority: strict + show-channel-urls: true - name: Install dependencies + shell: bash -l {0} run: | python -m pip install --upgrade pip python -m pip install --upgrade pytest python -m pip install flake8 pytest pytest-cov coveralls - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + conda config --set always_yes yes + conda install --quiet --yes mamba + mamba install --quiet --yes --file requirements.txt + mamba install -q -y stackvana=0 lsstdesc-weaklensingdeblending + + pip install --no-deps git://github.com/sibirrer/lenstronomy.git + pip install --no-deps git://github.com/LSSTDESC/gcr-catalogs.git + python -m pip install . - name: Lint with flake8 run: |