MAINT: Update CI configurations and handle sanity checks #255
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows CI | |
on: [push, pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["windows-latest"] | |
python-version: ["3.8"] | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python version ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
cache-dependency-path: pyproject.toml | |
- name: Install and test | |
shell: pwsh | |
run: | | |
python.exe -m pip install .[test] | |
python.exe -m pip install packaging virtualenv | |
python.exe -m pytest -v -l -x --timeout=300 --durations=100 test --environment-type=virtualenv | |
test_env: | |
name: test_environments | |
runs-on: "windows-latest" | |
strategy: | |
fail-fast: false | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: mamba-org/[email protected] | |
with: | |
init-shell: powershell | |
environment-name: test-env | |
cache-environment: true | |
create-args: >- | |
python | |
pip | |
libmambapy<2.0 | |
conda-build | |
- name: Install dependencies | |
run: python -m pip install ".[test,hg]" --pre | |
shell: pwsh | |
- name: Install asv | |
run: pip install . | |
shell: pwsh | |
- name: Run tests | |
run: python -m pytest -k environment_bench -vvvvv | |
shell: pwsh |