diff --git a/.github/workflows/test-package-action.yml b/.github/workflows/test-package-action.yml new file mode 100644 index 0000000..b4d529f --- /dev/null +++ b/.github/workflows/test-package-action.yml @@ -0,0 +1,39 @@ +name: Package Tests + +on: + workflow_call: + inputs: + changed-files: + required: true + type: string + description: JSON string containing information about changed files + +jobs: + test: + strategy: + fail-fast: false + matrix: + runs-on: + - ubuntu-latest + - macos-12 + - macos-13-xlarge + - windows-latest + + name: Package Test ${{ matrix.runs-on }} + runs-on: ${{ matrix.runs-on }} + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install python dependencies + run: | + pip3 install pytest + + - name: Run tests + run: | + pytest -v