|
9 | 9 | schedule: |
10 | 10 | - cron: '0 0 * * *' # Daily “At 00:00” |
11 | 11 |
|
| 12 | +concurrency: |
| 13 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 14 | + cancel-in-progress: true |
| 15 | + |
12 | 16 | jobs: |
13 | 17 | test: |
14 | | - name: Python (${{ matrix.python-version }}, ${{ matrix.os }}) |
| 18 | + name: Python ${{ matrix.python-version }}, ${{ matrix.os }} |
15 | 19 | runs-on: ${{ matrix.os }} |
16 | 20 | defaults: |
17 | 21 | run: |
18 | 22 | shell: bash -l {0} |
19 | | - |
20 | 23 | strategy: |
21 | 24 | fail-fast: false |
22 | 25 | matrix: |
23 | 26 | os: [ "ubuntu-latest", "macos-latest", "macos-14" ] |
24 | 27 | python-version: [ "3.9", "3.10", "3.11", "3.12" ] |
25 | | - |
26 | 28 | steps: |
27 | | - - name: Cancel previous runs |
28 | | - |
29 | | - with: |
30 | | - access_token: ${{ github.token }} |
31 | | - - name: Checkout |
| 29 | + - name: checkout |
32 | 30 | uses: actions/checkout@v4 |
| 31 | + - name: environment setup |
| 32 | + uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3.1.1 |
33 | 33 | with: |
34 | | - token: ${{ github.token }} |
35 | | - - name: Conda setup |
36 | | - uses: conda-incubator/setup-miniconda@v3 |
37 | | - if: matrix.os != 'macos-14' |
38 | | - with: |
39 | | - python-version: ${{ matrix.python-version }} |
40 | | - channels: conda-forge |
41 | | - environment-file: build_envs/environment.yml |
42 | | - - name: Conda setup (macOS M1) |
43 | | - uses: conda-incubator/setup-miniconda@v3 |
44 | | - if: matrix.os == 'macos-14' |
45 | | - with: |
46 | | - installer-url: https://github.com/conda-forge/miniforge/releases/download/23.11.0-0/Mambaforge-23.11.0-0-MacOSX-arm64.sh |
47 | 34 | python-version: ${{ matrix.python-version }} |
48 | 35 | channels: conda-forge |
49 | 36 | environment-file: build_envs/environment.yml |
50 | | - - name: Build WRF-Python |
| 37 | + - name: build WRF-Python |
51 | 38 | run: | |
52 | 39 | python -m pip install build |
53 | 40 | python -m build . |
54 | 41 | python -m pip install dist/wrf*.whl |
55 | | - - name: Run tests |
| 42 | + - name: run tests |
56 | 43 | run: | |
57 | 44 | cd test/ci_tests |
58 | 45 | python utests.py |
59 | | - - name: Check import |
| 46 | + - name: check import |
60 | 47 | if: failure() |
61 | 48 | run: | |
62 | 49 | python -m pip show wrf-python |
|
0 commit comments