Move shared workflows to a shared folder #1
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: "Test Eve" | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| paths: # Run when gt4py.eve files (or package settings) are changed | ||
| - "src/gt4py/eve/**" | ||
| - "tests/eve_tests/**" | ||
| - ".github/workflows/**" | ||
| - "*.lock" | ||
| - "*.toml" | ||
| - "*.yml" | ||
| jobs: | ||
| # Get Python versions from reusable workflow | ||
| get-python-versions: | ||
| uses: ./.github/workflows/shared/get-python-versions.yml | ||
| test-eve: | ||
| needs: get-python-versions | ||
| strategy: | ||
| matrix: | ||
| os: ["ubuntu-latest"] | ||
| python-version: ${{ fromJson(needs.get-python-versions.outputs.python-versions) }} | ||
| fail-fast: false | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install uv and set the python version | ||
| uses: astral-sh/setup-uv@v5 | ||
| with: | ||
| enable-cache: true | ||
| cache-dependency-glob: "uv.lock" | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Run 'eve' tests with nox | ||
| env: | ||
| NUM_PROCESSES: auto | ||
| shell: bash | ||
| run: uv run nox -s test_eve-${{ matrix.python-version }} | ||