From e39e6bcd6cfc4a81fea0482d129a0344b410cc8d Mon Sep 17 00:00:00 2001 From: "C. Titus Brown" Date: Fri, 3 Nov 2023 09:14:47 -0700 Subject: [PATCH] update ci --- .github/workflows/test.yml | 42 ++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e786557..7c2774e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,26 +16,38 @@ jobs: if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository steps: - - uses: actions/checkout@v2 - - - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python }} - - - run: pip install -U pip setuptools - - - name: Setup conda - uses: s-weigand/setup-conda@v1 + - uses: actions/checkout@v4 with: - activate-conda: true - - run: conda env update -n base -f environment.yml + fetch-depth: 0 + + - name: cache conda + uses: actions/cache@v3 + env: + CACHE_NUMBER: 0 + with: + path: ~/conda_pkgs_dir + key: + ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }} + + - name: setup conda + uses: conda-incubator/setup-miniconda@3b0f2504dd76ef23b6d31f291f4913fb60ab5ff3 + with: + auto-update-conda: true + python-version: 3.9 + channels: conda-forge,bioconda + miniforge-variant: Mambaforge + miniforge-version: latest + use-mamba: true + mamba-version: "*" + activate-environment: sourmash_dev + auto-activate-base: false + use-only-tar-bz2: true - name: Install coverage dependencies run: pip install pytest-cov pytest-dependency - - name: Build - run: python setup.py build_ext --inplace +# - name: Build +# run: python setup.py build_ext --inplace - name: Install charcoal run: pip install -e .