-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7905173
commit d7ebdf4
Showing
1 changed file
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: Test package | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
push: | ||
branches: ["main", "feature/*"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
test-package: | ||
runs-on: $$ {{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
name: [ | ||
"ubuntu-python-3-8", | ||
"ubuntu-python-3-9", | ||
"ubuntu-python-3-10", | ||
"ubuntu-python-3-11", | ||
"ubuntu-python-3-12", | ||
|
||
"windows-python-3-8", | ||
"windows-python-3-9", | ||
"windows-python-3-10", | ||
"windows-python-3-11", | ||
"windows-python-3-12" | ||
|
||
"macos-python-3-8", | ||
"macos-python-3-9", | ||
"macos-python-3-10", | ||
"macos-python-3-11", | ||
"macos-python-3-12" | ||
] | ||
|
||
include: | ||
- name: "ubuntu-python-3-8" | ||
python-version: "3.8" | ||
os: ubuntu-latest | ||
- name: "ubuntu-python-3-9" | ||
python-version: "3.9" | ||
os: ubuntu-latest | ||
- name: "ubuntu-python-3-10" | ||
python-version: "3.10" | ||
os: ubuntu-latest | ||
- name: "ubuntu-python-3-11" | ||
python-version: "3.11" | ||
os: ubuntu-latest | ||
- name: "ubuntu-python-3-12" | ||
python-version: "3.12" | ||
os: ubuntu-latest | ||
|
||
- name: "windows-python-3-8" | ||
python-version: "3.8" | ||
os: windows-latest | ||
- name: "windows-python-3-9" | ||
python-version: "3.9" | ||
os: windows-latest | ||
- name: "windows-python-3-10" | ||
python-version: "3.10" | ||
os: windows-latest | ||
- name: "windows-python-3-11" | ||
python-version: "3.11" | ||
os: windows-latest | ||
- name: "windows-python-3-12" | ||
python-version: "3.12" | ||
os: windows-latest | ||
|
||
- name: "macos-python-3-8" | ||
python-version: "3.8" | ||
os: macos-latest | ||
- name: "macos-python-3-9" | ||
python-version: "3.9" | ||
os: macos-latest | ||
- name: "macos-python-3-10" | ||
python-version: "3.10" | ||
os: macos-latest | ||
- name: "macos-python-3-11" | ||
python-version: "3.11" | ||
os: macos-latest | ||
- name: "macos-python-3-12" | ||
python-version: "3.12" | ||
os: macos-latest | ||
|
||
env: | ||
INTERPRETER: python | ||
PIP: python -m pip | ||
|
||
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 |