| 1 | name: Build and test with development python |
| 2 | on: [push, pull_request] |
| 3 | jobs: |
| 4 | build-linux: |
| 5 | name: Python (${{ matrix.python-version }}) |
| 6 | runs-on: ubuntu-latest |
| 7 | strategy: |
| 8 | matrix: |
| 9 | python-version: ["3.14.0b.1"] |
| 10 | steps: |
| 11 | |
| 12 | - uses: actions/checkout@v5 |
| 13 | |
| 14 | - name: Set up Python ${{ matrix.python-version }} |
| 15 | uses: actions/setup-python@v6 |
| 16 | with: |
| 17 | python-version: ${{ matrix.python-version }} |
| 18 | |
| 19 | - name: Update Pip |
| 20 | run: | |
| 21 | python -m pip install --upgrade pip |
| 22 | |
| 23 | - name: Install unstable cftime dependencies via pip |
| 24 | run: | |
| 25 | python -m pip install --pre --group dev |
| 26 | # get nightly wheels for numpy |
| 27 | python -m pip install \ |
| 28 | --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/ \ |
| 29 | --trusted-host pypi.anaconda.org \ |
| 30 | --no-deps --pre --upgrade \ |
| 31 | numpy |
| 32 | |
| 33 | - name: Install cftime |
| 34 | run: | |
| 35 | python -m pip install . |
| 36 | |
| 37 | - name: Test cftime |
| 38 | run: | |
| 39 | pytest -vv test |