diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0312026..e6384dc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,33 +15,25 @@ jobs: steps: - uses: actions/checkout@v3 + with: + # Fetch all history for all tags and branches (tag information is + # required when building the conda package) + fetch-depth: 0 - uses: conda-incubator/setup-miniconda@v2 with: python-version: '3.9' - auto-activate-base: false - activate-environment: benchcab-dev - environment-file: .conda/benchcab-dev.yaml + - name: Build and install conda package + run: | + conda install conda-build + conda build -c conda-forge -c accessnri -c coecms . + conda install --no-channel-priority -c $CONDA_PREFIX/conda-bld -c conda-forge -c accessnri -c coecms benchcab + conda uninstall conda-build - name: Test with pytest run: | + conda install pytest-cov pytest --cov=./ --cov-report=xml - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.xml - - build_conda_package: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: conda-incubator/setup-miniconda@v2 - with: - python-version: '3.9' - - name: Test conda build - run: | - conda install conda-build - conda build -c conda-forge -c accessnri -c coecms . \ No newline at end of file