Charm4py #1359
This file contains hidden or 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
| name: Charm4py | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| schedule: | |
| - cron: "5 0 * * *" # Runs at 00:05 UTC every day. | |
| jobs: | |
| auto_test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.12", "3.14"] | |
| # macos-13 is x86_64, macos-14 is arm64 | |
| os: [ubuntu-latest, macos-14, macos-15, macos-26] | |
| exclude: | |
| - os: macos-26 | |
| python-version: "3.14" | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Need full repo for 'git describe' used by setup.py | |
| - name: setup-python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| pip install setuptools cython cffi greenlet numpy torch torchvision filelock matplotlib | |
| - name: Build Charm++/Charm4py | |
| run: | | |
| git clone https://github.com/charmplusplus/charm charm_src/charm | |
| export CHARM_EXTRA_BUILD_OPTS="--enable-error-checking" | |
| export CHARM_BUILD_PROCESSES=8 | |
| export CHARM4PY_BUILD_CFFI=1 | |
| pip install -e . | |
| - name: Run auto_test.py | |
| run: | | |
| export PYTHONPATH="$PWD" | |
| export CHARM4PY_TEST_NUM_PROCESSES=2 | |
| # needed for param server | |
| export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES | |
| python auto_test.py |