Skip to content

Commit

Permalink
Add test-package workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxcode123 committed Feb 15, 2024
1 parent 7905173 commit d7ebdf4
Showing 1 changed file with 99 additions and 0 deletions.
99 changes: 99 additions & 0 deletions .github/workflows/test-package.yml
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

0 comments on commit d7ebdf4

Please sign in to comment.