Skip to content

Move shared workflows to a shared folder #1

Move shared workflows to a shared folder

Move shared workflows to a shared folder #1

Workflow file for this run

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

Check failure on line 21 in .github/workflows/test-eve.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-eve.yml

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
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 }}