Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fkiraly committed Aug 30, 2024
1 parent b694b0c commit 340804d
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,45 @@ jobs:
run: build_tools/run_examples.sh
shell: bash

pytest-nosoftdeps:
name: Run pytest without soft dependencies
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Setup macOS
if: runner.os == 'macOS'
run: |
brew install libomp # https://github.com/pytorch/pytorch/issues/20030
- name: Get full Python version
id: full-python-version
shell: bash
run: echo version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))") >> $GITHUB_OUTPUT

- name: Install dependencies
shell: bash
run: |
pip install ".[dev,github-actions]"
- name: Show dependencies
run: python -m pip list

- name: Run pytest
shell: bash
run: python -m pytest tests

pytest:
name: Run pytest
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 340804d

Please sign in to comment.