Repository navigation
Make HOURS_VALUES a host array to avoid import-time GPU preallocation #104
Workflow file for this run
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: main | |
| # aca-model is a git submodule of the aca-dev workspace and has no pixi config | |
| # of its own — the pixi environments live in the parent workspace, whose | |
| # `tests-cpu` env has editable path-dependencies on private sibling repos that a | |
| # standalone CI runner cannot clone. CI therefore installs with pip directly. | |
| concurrency: | |
| group: ${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| run-tests: | |
| name: Run tests on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| python-version: | |
| - '3.14' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install pylcm from main | |
| run: >- | |
| pip install "pylcm @ | |
| git+https://github.com/OpenSourceEconomics/pylcm.git@main" | |
| - name: Install aca-model with test deps | |
| run: pip install -e . pytest pdbp | |
| - name: Run pytest | |
| run: pytest tests |