Skip to content

Commit

Permalink
Create CI_CD_MacOS.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
talagayev authored Jul 25, 2024
1 parent 543af74 commit 61dae50
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/CI_CD_MacOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI-CD

on: [push]

jobs:
build_macos:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
ipywidgets-version: [7.6.4, 7.7.0, 7.8.0, 8.0.0, 8.1.0, latest]
max-parallel: 5

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 ipywidgets
run: |
if [ "${{ matrix.ipywidgets-version }}" = "latest" ]; then
pip install ipywidgets
else
pip install ipywidgets==${{ matrix.ipywidgets-version }}
fi
- name: Install package and its entry points
run: |
pip install .
- name: Install linter and formatter
run: |
python -m pip install shyaml flake8 black black-nb flake8-nb
- name: Run black formatter
run: |
black -l 99 .
- name: Install pytest and run tests
run: |
pip install pytest pytest-cov
pytest mdonatello/tests/

0 comments on commit 61dae50

Please sign in to comment.