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