ci: activate mamba environments for pytest

This commit is contained in:
Anand Balakrishnan 2023-10-05 16:51:01 -07:00
parent 4c7e3a0fb5
commit c8b3a08619
No known key found for this signature in database

View file

@ -34,8 +34,7 @@ jobs:
environment-name: ci environment-name: ci
create-args: >- create-args: >-
python==${{ matrix.python-version }} pytest hypothesis python==${{ matrix.python-version }} pytest hypothesis
init-shell: >- init-shell: bash
bash powershell
cache-environment: true cache-environment: true
post-cleanup: 'all' post-cleanup: 'all'
- name: Install Rust toolchain - name: Install Rust toolchain
@ -52,9 +51,8 @@ jobs:
manylinux: auto manylinux: auto
- name: Python Tests - name: Python Tests
if: matrix.target == 'x86_64' if: matrix.target == 'x86_64'
shell: bash shell: bash -el {0}
run: | run: |
set -e
pip install pyargus --find-links dist --force-reinstall pip install pyargus --find-links dist --force-reinstall
cd pyargus && pytest cd pyargus && pytest
@ -80,8 +78,7 @@ jobs:
environment-name: ci environment-name: ci
create-args: >- create-args: >-
python==${{ matrix.python-version }} pytest hypothesis python==${{ matrix.python-version }} pytest hypothesis
init-shell: >- init-shell: powershell
bash powershell
cache-environment: true cache-environment: true
post-cleanup: 'all' post-cleanup: 'all'
- name: Install Rust toolchain - name: Install Rust toolchain
@ -97,10 +94,8 @@ jobs:
args: --release --out dist -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml --zig args: --release --out dist -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml --zig
manylinux: auto manylinux: auto
- name: Python Tests - name: Python Tests
if: matrix.target == 'x86_64' shell: pwsh
shell: bash
run: | run: |
set -e
pip install pyargus --find-links dist --force-reinstall pip install pyargus --find-links dist --force-reinstall
cd pyargus && pytest cd pyargus && pytest
@ -126,12 +121,13 @@ jobs:
environment-name: ci environment-name: ci
create-args: >- create-args: >-
python==${{ matrix.python-version }} pytest hypothesis python==${{ matrix.python-version }} pytest hypothesis
init-shell: >- init-shell: bash
bash powershell
cache-environment: true cache-environment: true
post-cleanup: 'all' post-cleanup: 'all'
- name: Install Rust toolchain - name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}-apple-darwin
- name: Build - name: Build
run: cargo build --release run: cargo build --release
- name: Rust Tests - name: Rust Tests
@ -144,8 +140,7 @@ jobs:
manylinux: auto manylinux: auto
- name: Python Tests - name: Python Tests
if: matrix.target == 'x86_64' if: matrix.target == 'x86_64'
shell: bash shell: bash -el {0}
run: | run: |
set -e
pip install pyargus --find-links dist --force-reinstall pip install pyargus --find-links dist --force-reinstall
cd pyargus && pytest cd pyargus && pytest