2022-12-13 22:16:52 +00:00
|
|
|
name: Test Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main", "release"]
|
|
|
|
paths:
|
2024-10-04 14:51:57 +00:00
|
|
|
- '.github/workflows/build.yml'
|
2022-12-14 09:41:15 +00:00
|
|
|
- 'src/**'
|
2022-12-13 22:16:52 +00:00
|
|
|
- 'Makefile'
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main", "release"]
|
|
|
|
paths:
|
2024-10-04 14:51:57 +00:00
|
|
|
- '.github/workflows/build.yml'
|
2022-12-14 09:41:15 +00:00
|
|
|
- 'src/**'
|
2022-12-13 22:16:52 +00:00
|
|
|
- 'Makefile'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test_build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-04 14:51:57 +00:00
|
|
|
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
2022-12-13 22:16:52 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v3
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
|
|
- name: Local build checking
|
2024-10-04 14:51:57 +00:00
|
|
|
run: make build
|