Skip to content

Commit

Permalink
feat: github action enforce PR continuous integration rules
Browse files Browse the repository at this point in the history
* configure runner to execute on ubuntu, macos and windows
  • Loading branch information
FabienArcellier committed Feb 10, 2024
1 parent e9dca4b commit a524a84
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ci-macos

on: [ push, pull_request ]

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12" ]

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: update package manager & install python3 environment
run: |
sudo pip install poetry
poetry install
23 changes: 23 additions & 0 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ci-windows

on: [ push, pull_request ]

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12" ]

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: update package manager & install python3 environment
run: |
pip install poetry
poetry install
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
runs-on: [ubuntu-latest, macos-latest, windows-latest]
strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12" ]
Expand Down

0 comments on commit a524a84

Please sign in to comment.