diff --git a/.github/workflows/pytest-mac.yml b/.github/workflows/pytest-mac.yml new file mode 100644 index 000000000..8593c5e3a --- /dev/null +++ b/.github/workflows/pytest-mac.yml @@ -0,0 +1,39 @@ +name: pytest-mac + +on: + # Trigger the workflow on push or pull request, + # but only for the main branch + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + pytest: + runs-on: macos-latest + + strategy: + matrix: + python-version: ["3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + + - name: Install Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: "pip" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Install pyro + run: pip install . + + - name: Run tests with pytest + run: pytest -v --nbval --color=yes