From 4d5187542b8c79f2bebfeca89aa4a64327a338aa Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Thu, 26 Jun 2025 17:20:50 -0400 Subject: [PATCH 1/3] add Mac OS CI this doesn't cover the notebooks --- .github/workflows/pytest-mac.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/pytest-mac.yml diff --git a/.github/workflows/pytest-mac.yml b/.github/workflows/pytest-mac.yml new file mode 100644 index 000000000..fe1ce8832 --- /dev/null +++ b/.github/workflows/pytest-mac.yml @@ -0,0 +1,39 @@ +name: pytest-all + +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 --color=yes From d5e5c4144e6fc2554703eb21f62327819427680c Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Thu, 26 Jun 2025 17:23:11 -0400 Subject: [PATCH 2/3] fix name --- .github/workflows/pytest-mac.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest-mac.yml b/.github/workflows/pytest-mac.yml index fe1ce8832..4084a87b0 100644 --- a/.github/workflows/pytest-mac.yml +++ b/.github/workflows/pytest-mac.yml @@ -1,4 +1,4 @@ -name: pytest-all +name: pytest-mac on: # Trigger the workflow on push or pull request, From 9eaa068fe6fac54999daa5965b1b5e77230e0e01 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Thu, 26 Jun 2025 17:30:26 -0400 Subject: [PATCH 3/3] try notebooks --- .github/workflows/pytest-mac.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest-mac.yml b/.github/workflows/pytest-mac.yml index 4084a87b0..8593c5e3a 100644 --- a/.github/workflows/pytest-mac.yml +++ b/.github/workflows/pytest-mac.yml @@ -36,4 +36,4 @@ jobs: run: pip install . - name: Run tests with pytest - run: pytest -v --color=yes + run: pytest -v --nbval --color=yes