name: CI on: push: branches: - main pull_request: branches: - main concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: test: name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }} runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, windows-latest] python-version: ['3.10', 3.11, 3.12, 3.13, 3.14] steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Additional info about the build shell: bash run: | uname -a df -h ulimit -a # More info on options: https://github.com/conda-incubator/setup-miniconda - uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1 with: python-version: ${{ matrix.python-version }} conda-build-version: "*" environment-file: devtools/conda-envs/test_env.yaml channels: defaults activate-environment: test_env auto-update-conda: false auto-activate-base: false show-channel-urls: true - name: Build and test package # conda setup requires this special shell shell: bash -l {0} run: | conda-build -c conda -c conda-forge --python "${{ matrix.python-version }}" conda.recipe # TODO: Re-enable codecov when we figure out how to grab coverage from the conda build # environment # - name: CodeCov # uses: codecov/codecov-action@v1 # with: # file: ./coverage.xml # flags: unittests # name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}