Skip to content

Commit

Permalink
Update CI workflow for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleailes committed Jan 21, 2024
1 parent 5585b01 commit 1432c63
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is autogenerated by maturin v1.2.3
# This file is autogenerated by maturin v1.4.0
# To update, run
#
# maturin generate-ci github
# maturin generate-ci --pytest github -o .github/workflows/CI.yml
#
name: CI

Expand Down Expand Up @@ -41,6 +41,29 @@ jobs:
with:
name: wheels
path: dist
- name: pytest
if: ${{ startsWith(matrix.target, 'x86_64') }}
shell: bash
run: |
set -e
pip install py-framels --find-links dist --force-reinstall
pip install pytest
pytest
- name: pytest
if: ${{ !startsWith(matrix.target, 'x86') && matrix.target != 'ppc64' }}
uses: uraimo/[email protected]
with:
arch: ${{ matrix.target }}
distro: ubuntu22.04
githubToken: ${{ github.token }}
install: |
apt-get update
apt-get install -y --no-install-recommends python3 python3-pip
pip3 install -U pip pytest
run: |
set -e
pip3 install py-framels --find-links dist --force-reinstall
pytest
windows:
runs-on: windows-latest
Expand All @@ -64,6 +87,14 @@ jobs:
with:
name: wheels
path: dist
- name: pytest
if: ${{ !startsWith(matrix.target, 'aarch64') }}
shell: bash
run: |
set -e
pip install py-framels --find-links dist --force-reinstall
pip install pytest
pytest
macos:
runs-on: macos-latest
Expand All @@ -86,6 +117,14 @@ jobs:
with:
name: wheels
path: dist
- name: pytest
if: ${{ !startsWith(matrix.target, 'aarch64') }}
shell: bash
run: |
set -e
pip install py-framels --find-links dist --force-reinstall
pip install pytest
pytest
sdist:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1432c63

Please sign in to comment.