diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 623499a..ca9b0b1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,6 +13,9 @@ jobs: python-version: [ "3.9", "3.10", "3.11", "3.12" ] os: [windows-latest, ubuntu-latest, macos-latest] fail-fast: false + defaults: + run: + shell: bash -l {0} steps: - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 @@ -25,11 +28,13 @@ jobs: create-args: >- python=${{ matrix.python-version }} pip python-build compilers --channel conda-forge - - name: Install wheel and run tests - shell: bash -l {0} + - name: Install wheel run: > - python -m pip install -e . --no-deps --force-reinstall - && python -m build --wheel . --outdir dist - && cp -r test/ dist/ - && cd dist && pip install pytest *.whl + python -m build --wheel . --outdir dist + && pip install pytest dist/*.whl + + - name: Tests + run: > + cp --recursive test/ /tmp + && pushd /tmp && python -m pytest -rxs test