-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI-CD workflow for Linux, macOS, and Windows
- Loading branch information
1 parent
feb0473
commit cdfde7b
Showing
5 changed files
with
101 additions
and
109 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,100 @@ | ||
name: CI-CD | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build_linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
max-parallel: 3 | ||
|
||
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 package and its entry points | ||
run: | | ||
pip install . | ||
- name: Install linter and formatter | ||
run: | | ||
python -m pip install flake8 black | ||
- name: Lint and format | ||
run: | | ||
black . | ||
- name: Install pytest and run tests | ||
run: | | ||
python -m pip install pytest pytest-mock | ||
pytest mdpath/tests/ | ||
build_macos: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
max-parallel: 3 | ||
|
||
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 package and its entry points | ||
run: | | ||
pip install . | ||
- name: Install linter and formatter | ||
run: | | ||
python -m pip install flake8 black | ||
- name: Lint and format | ||
run: | | ||
black . | ||
- name: Install pytest and run tests | ||
run: | | ||
python -m pip install pytest pytest-mock | ||
pytest mdpath/tests/ | ||
build_windows: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
max-parallel: 3 | ||
|
||
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 package and its entry points | ||
run: | | ||
pip install . | ||
- name: Install linter and formatter | ||
run: | | ||
python -m pip install flake8 black | ||
- name: Lint and format | ||
run: | | ||
black . | ||
- name: Install pytest and run tests | ||
run: | | ||
python -m pip install pytest pytest-mock | ||
pytest mdpath/tests/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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