diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml new file mode 100644 index 0000000..1b857e8 --- /dev/null +++ b/.github/workflows/test-package.yml @@ -0,0 +1,32 @@ +name: Test package + +on: + workflow_call: + workflow_dispatch: + push: + branches: ["main", "feature/*"] + pull_request: + branches: ["main"] + + jobs: + test-package: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + + env: + INTERPRETER: python + PIP: python -m pip + + runs-on: $$ {{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install local package + run: make install local-package + - name: Test package + run: make test-package \ No newline at end of file