Skip to content

Commit

Permalink
test macos
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusOrsoe committed Oct 5, 2023
1 parent dc6bdfc commit 260b784
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,24 @@ jobs:
coverage run --source=graphnet -m pytest tests/utilities
coverage report -m
- name: Print available disk space after unit tests
run: df -h
run: df -h

build-macos:
name: Unit tests - macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install package
uses: ./.github/actions/install
with:
editable: true
hardware: "macos"
- name: Run unit tests and generate coverage report
run: |
set -o pipefail # To propagate exit code from pytest
coverage run --source=graphnet -m pytest tests/ --ignore=tests/data/ --ignore=tests/deployment/ --ignore=tests/examples/
coverage report -m

0 comments on commit 260b784

Please sign in to comment.