|
1 | | - name: Continuous Integration |
2 | | - |
3 | | - on: |
4 | | - push: |
5 | | - branches: |
6 | | - - '*' |
7 | | - pull_request: |
8 | | - branches: |
9 | | - - '*' |
10 | | - schedule: |
11 | | - - cron: '59 23 * * *' |
12 | | - workflow_dispatch: |
| 1 | +--- |
| 2 | +name: Continuous Integration |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - "*" |
| 7 | + pull_request: |
| 8 | + branches: |
| 9 | + - "*" |
| 10 | + schedule: |
| 11 | + - cron: 59 23 * * * |
| 12 | + workflow_dispatch: |
13 | 13 | inputs: |
14 | 14 | version: |
15 | 15 | description: Manual CI Run |
16 | 16 | default: test |
17 | 17 | required: false |
18 | | - |
19 | | - jobs: |
20 | | - tests: |
21 | | - name: ${{ matrix.os }}, ${{ matrix.environment-file }} |
22 | | - runs-on: ${{ matrix.os }} |
23 | | - timeout-minutes: 30 |
24 | | - strategy: |
25 | | - matrix: |
26 | | - os: [ubuntu-latest] |
27 | | - environment-file: [ |
28 | | - ci/311-oldest.yaml, |
29 | | - ci/311-latest.yaml, |
30 | | - ci/312-latest.yaml, |
31 | | - ci/313-latest.yaml, |
32 | | - ci/313-dev.yaml, |
33 | | - ] |
34 | | - include: |
35 | | - - environment-file: ci/313-latest.yaml |
36 | | - os: macos-13 # Intel |
37 | | - - environment-file: ci/313-latest.yaml |
38 | | - os: macos-14 # Apple Silicon |
39 | | - - environment-file: ci/313-latest.yaml |
40 | | - os: windows-latest |
41 | | - fail-fast: false |
42 | | - |
43 | | - defaults: |
44 | | - run: |
45 | | - shell: bash -l {0} |
46 | | - |
47 | | - steps: |
48 | | - - name: checkout repo |
49 | | - uses: actions/checkout@v4 |
50 | | - with: |
51 | | - fetch-depth: 0 # Fetch all history for all branches and tags. |
52 | | - |
53 | | - - name: setup micromamba |
54 | | - uses: mamba-org/setup-micromamba@v1 |
55 | | - with: |
56 | | - environment-file: ${{ matrix.environment-file }} |
57 | | - micromamba-version: 'latest' |
58 | | - |
59 | | - ############################################################################## |
60 | | - #- name: install pulp via pip |
61 | | - # run: | |
62 | | - # pip install pulp |
63 | | - # pulptest |
64 | | - ############################################################################## |
65 | | - |
66 | | - - name: environment info |
67 | | - run: | |
68 | | - micromamba info |
69 | | - micromamba list |
70 | | - |
71 | | - - name: spatial versions |
72 | | - run: 'python -c "import geopandas; geopandas.show_versions();"' |
73 | | - |
74 | | - - name: Download test files |
75 | | - run: | |
| 18 | +jobs: |
| 19 | + tests: |
| 20 | + name: ${{ matrix.os }}, ${{ matrix.environment-file }} |
| 21 | + runs-on: ${{ matrix.os }} |
| 22 | + timeout-minutes: 30 |
| 23 | + strategy: |
| 24 | + matrix: |
| 25 | + os: |
| 26 | + - ubuntu-latest |
| 27 | + environment-file: |
| 28 | + - ci/py311_spopt-oldest.yaml |
| 29 | + - ci/py311_spopt-latest.yaml |
| 30 | + - ci/py312_spopt-latest.yaml |
| 31 | + - ci/py313_spopt-latest.yaml |
| 32 | + - ci/py313_spopt-dev.yaml |
| 33 | + include: |
| 34 | + - environment-file: ci/py313_spopt-latest.yaml |
| 35 | + os: macos-13 |
| 36 | + - environment-file: ci/py313_spopt-latest.yaml |
| 37 | + os: macos-14 |
| 38 | + - environment-file: ci/py313_spopt-latest.yaml |
| 39 | + os: windows-latest |
| 40 | + fail-fast: false |
| 41 | + defaults: |
| 42 | + run: |
| 43 | + shell: bash -l {0} |
| 44 | + steps: |
| 45 | + - name: checkout repo |
| 46 | + uses: actions/checkout@v4 |
| 47 | + with: |
| 48 | + fetch-depth: 0 |
| 49 | + - name: setup micromamba |
| 50 | + uses: mamba-org/setup-micromamba@v2 |
| 51 | + with: |
| 52 | + environment-file: ${{ matrix.environment-file }} |
| 53 | + micromamba-version: latest |
| 54 | + - name: environment info |
| 55 | + run: | |
| 56 | + micromamba info |
| 57 | + micromamba list |
| 58 | + - name: spatial versions |
| 59 | + run: python -c "import geopandas; geopandas.show_versions();" |
| 60 | + - name: Download test files |
| 61 | + run: | |
76 | 62 | python -c ' |
77 | 63 | import libpysal |
78 | 64 | libpysal.examples.fetch_all() |
79 | 65 | ' |
80 | | - |
81 | | - - name: run tests |
82 | | - run: | |
83 | | - pytest spopt \ |
84 | | - -v \ |
85 | | - -r a \ |
86 | | - -n logical \ |
87 | | - --color yes \ |
88 | | - --cov spopt \ |
89 | | - --cov-append \ |
90 | | - --cov-report term-missing \ |
91 | | - --cov-report xml . |
92 | | - |
93 | | - - name: codecov |
94 | | - uses: codecov/codecov-action@v4 |
| 66 | + - name: run tests |
| 67 | + run: | |
| 68 | + pytest spopt \ |
| 69 | + -v \ |
| 70 | + -r a \ |
| 71 | + -n logical \ |
| 72 | + --color yes \ |
| 73 | + --cov spopt \ |
| 74 | + --cov-append \ |
| 75 | + --cov-report term-missing \ |
| 76 | + --cov-report xml . |
| 77 | + - name: codecov |
| 78 | + uses: codecov/codecov-action@v5 |
0 commit comments