Merge pull request #5942 from prckent/nightv #112
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: Nexus Testing | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - main | |
| pull_request: | |
| branches: | |
| - develop | |
| - main | |
| jobs: | |
| linux: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.14"] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Action | |
| uses: actions/checkout@v6 | |
| - name: Setup Graphviz | |
| run: sudo apt-get install graphviz | |
| - name: Install uv and Setup Python ${{ matrix.python-version }} | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "0.11.6" | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Project and All Dependencies | |
| run: uv sync --locked --all-extras --dev | |
| working-directory: ./nexus | |
| - name: Use Numpy 1.22.0 (Python 3.10 only) | |
| if: contains(matrix.python-version, '3.10') | |
| run: uv pip install numpy==1.22.0 | |
| working-directory: ./nexus | |
| - name: Run Nexus Tests | |
| run: uv run pytest nexus/tests/ | |
| working-directory: ./nexus | |
| macos: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.14"] | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout Action | |
| uses: actions/checkout@v6 | |
| - name: Setup Graphviz | |
| run: brew install graphviz | |
| - name: Install uv and Setup Python ${{ matrix.python-version }} | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "0.11.6" | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Project and All Dependencies | |
| run: uv sync --locked --all-extras --dev | |
| working-directory: ./nexus | |
| - name: Use Numpy 1.22.0 (Python 3.10 only) | |
| if: contains(matrix.python-version, '3.10') | |
| run: uv pip install numpy==1.22.0 | |
| working-directory: ./nexus | |
| - name: Run Nexus Tests | |
| run: uv run pytest nexus/tests/ | |
| working-directory: ./nexus |