splitting cpu and gpu tests #1
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: Do the job on push | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
do-the-job: | |
name: Do the job on the runner | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {os: ubuntu-latest, architecture: x64, python-version: '3.10'} | |
- {os: ubuntu-latest, architecture: x64, python-version: '3.11'} | |
- {os: macos-latest, architecture: arm64, python-version: '3.10'} | |
- {os: macos-latest, architecture: arm64, python-version: '3.11'} | |
env: | |
RUN_GPU_TESTS: false | |
steps: | |
- name: Hello World | |
run: echo 'Hello World!' | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install pytest | |
- name: Run unit tests | |
run: pytest |