Skip to content

Commit

Permalink
Update qokit-package.yml
Browse files Browse the repository at this point in the history
Added macOS
  • Loading branch information
alex124585 authored Oct 4, 2024
1 parent c66b88c commit d35d054
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/qokit-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on: # workflow_dispatch

jobs:
build:

name: Python ${{matrix.python-version}} on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11"]
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -29,12 +29,20 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pipreqs black addheader pytest-cov pip-licenses types-pkg-resources==0.1.3
- name: Install GCC (macOS only)
if: runner.os == 'macOS'
run: |
brew install gcc
export PATH=$PATH:/opt/homebrew/
- name: black check
run: |
black --check .
- name: pip install
run: |
pip install .
- name: Run tests
run: |
pytest --cov=qokit --cov-fail-under=75 -rs tests
Expand Down

0 comments on commit d35d054

Please sign in to comment.