update pixi env, try installing proj on macos ci #604
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: CI | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**.md' | |
| - '.gitignore' | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| paths-ignore: | |
| - '**.md' | |
| - '.gitignore' | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Setup pixi | |
| uses: prefix-dev/[email protected] | |
| with: | |
| pixi-version: v0.41.1 | |
| environments: dev | |
| activate-environment: true | |
| - name: Run ruff | |
| run: pixi run lint | |
| - name: Run mypy | |
| run: pixi run mypy flopy4 | |
| - name: Run codespell | |
| run: pixi run codespell | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Setup pixi | |
| uses: prefix-dev/[email protected] | |
| with: | |
| pixi-version: v0.41.1 | |
| environments: dev | |
| activate-environment: true | |
| - name: Print package version | |
| run: python -c "from flopy4 import version; print(version.__version__)" | |
| - name: Build package | |
| run: pixi run build | |
| test: | |
| name: Test | |
| needs: | |
| - build | |
| - lint | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest, macos-latest, windows-latest ] | |
| python: [ "311", "312", "313" ] | |
| env: | |
| GCC_V: 11 | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Install nightly build | |
| uses: modflowpy/install-modflow-action@v1 | |
| with: | |
| repo: modflow6-nightly-build | |
| - name: Install PROJ, HDF5, NetCDF (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install proj hdf5 netcdf | |
| - name: Setup pixi | |
| uses: prefix-dev/[email protected] | |
| with: | |
| pixi-version: v0.41.1 | |
| environments: test${{ matrix.python }} | |
| activate-environment: true | |
| - name: Run tests | |
| run: | | |
| pixi run python -m ipykernel install --name flopy4 --user | |
| pixi run test |