From 2489916e59d7a0fd10d38e187fa2db0b5759784c Mon Sep 17 00:00:00 2001 From: Leon Derczynski Date: Fri, 26 Apr 2024 10:31:56 +0200 Subject: [PATCH] add on-demand macos testing --- .github/workflows/test_macos.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test_macos.yml diff --git a/.github/workflows/test_macos.yml b/.github/workflows/test_macos.yml new file mode 100644 index 000000000..d40d63d64 --- /dev/null +++ b/.github/workflows/test_macos.yml @@ -0,0 +1,29 @@ +name: Garak pytest - MacOS + +on: [workflow_dispatch] + +jobs: + build_macos: + runs-on: macos-latest + strategy: + matrix: + python-version: ["3.10","3.12"] + steps: + - uses: actions/checkout@v3 + with: + path: garak + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Test with pytest + run: | + cd garak + python -m pytest tests/