fix workflow config #1914
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: CI-operators | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| # Trigger the workflow on push to master or pull request | |
| # to be merged in master | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| name: ${{ matrix.op }} on Julia ${{ matrix.version }} - ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| DEVITO_ARCH: gcc-11 | |
| DEVITO_LANGUAGE: "openmp" | |
| DEVITO_LOGGING: "INFO" | |
| OMP_NUM_THREADS: ${{ matrix.omp }} | |
| GROUP: ${{ matrix.op }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| op: ["ISO_OP", "ISO_OP_FS", "TTI_OP", "TTI_OP_FS", "BASICS"] | |
| version: ['1'] | |
| omp: [2] | |
| include: | |
| - os: macos-13 | |
| version: '1.6' | |
| op: "ISO_OP" | |
| omp: 1 | |
| - os: macos-13 | |
| version: '1.8' | |
| op: "ISO_OP" | |
| omp: 1 | |
| - os: macos-13 | |
| version: '1.9' | |
| op: "ISO_OP" | |
| omp: 1 | |
| - os: ubuntu-latest | |
| version: '1.9' | |
| op: "VISCO_AC_OP" | |
| omp: 2 | |
| - os: ubuntu-latest | |
| version: '1.10' | |
| op: "ISO_OP" | |
| omp: 2 | |
| steps: | |
| - name: Checkout JUDI | |
| uses: actions/checkout@v4 | |
| - name: Setup julia | |
| uses: julia-actions/setup-julia@v1 | |
| with: | |
| version: ${{ matrix.version }} | |
| arch: x64 | |
| - name: Set up Python 3.9 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.9 | |
| - name: Set julia python | |
| run: | | |
| echo "PYTHON=$(which python3)" >> $GITHUB_ENV | |
| PYTHON=$(which python3) julia -e 'using Pkg;Pkg.add("PyCall");Pkg.build("PyCall")' | |
| - name: Build JUDI | |
| uses: julia-actions/julia-buildpkg@latest | |
| - name: Run tests | |
| uses: julia-actions/julia-runtest@latest | |
| with: | |
| annotate: true | |
| - uses: julia-actions/julia-processcoverage@v1 | |
| - uses: codecov/codecov-action@v4 | |
| with: | |
| file: lcov.info | |
| token: ${{ secrets.CODECOV_TOKEN }} |