|
10 | 10 |
|
11 | 11 | jobs: |
12 | 12 | unittests: |
13 | | - name: conda (${{ matrix.os }}, ${{ matrix.environment-file }}) |
| 13 | + name: ${{ matrix.os }}, ${{ matrix.environment-file }} |
14 | 14 | runs-on: ${{ matrix.os }} |
15 | | - # timeout-minutes: 25 |
| 15 | + #timeout-minutes: 25 |
16 | 16 | strategy: |
17 | 17 | matrix: |
18 | 18 | os: ['macos-latest', 'ubuntu-latest', 'windows-latest'] |
19 | | - environment-file: [ci/36.yaml, ci/37.yaml, ci/38.yaml] |
| 19 | + environment-file: [ci/36.yaml, ci/37.yaml, ci/38.yaml, ci/39.yaml] |
20 | 20 | exclude: |
21 | 21 | - environment-file: ci/36.yaml |
22 | 22 | os: windows-latest |
23 | | - defaults: |
24 | | - run: |
25 | | - shell: bash -l {0} |
| 23 | + |
26 | 24 | steps: |
27 | | - - uses: actions/checkout@v2 |
28 | | - - uses: actions/cache@v2 |
29 | | - env: |
30 | | - CACHE_NUMBER: 0 |
31 | | - with: |
32 | | - path: ~/conda_pkgs_dir |
33 | | - key: ${{ matrix.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles(matrix.environment-file) }} |
34 | | - - uses: conda-incubator/setup-miniconda@v2 |
| 25 | + - name: checkout repo |
| 26 | + uses: actions/checkout@v2 |
| 27 | + |
| 28 | + - name: setup micromamba |
| 29 | + uses: mamba-org/provision-with-micromamba@main |
35 | 30 | with: |
36 | | - miniconda-version: 'latest' |
37 | | - mamba-version: '*' |
38 | | - channels: conda-forge |
39 | | - channel-priority: true |
40 | | - auto-update-conda: false |
41 | | - auto-activate-base: false |
42 | | - environment-file: ${{ matrix.environment-file }} |
43 | | - activate-environment: test |
44 | | - use-only-tar-bz2: true |
45 | | - - run: mamba info --all |
46 | | - - run: mamba list |
47 | | - - run: conda config --show-sources |
48 | | - - run: conda config --show |
49 | | - - run: python -c 'import libpysal; libpysal.examples.fetch_all()' |
50 | | - - run: py.test -v libpysal --cov=libpysal --cov-report=xml |
51 | | - - name: codecov (${{ matrix.os }}, ${{ matrix.environment-file }}) |
| 31 | + environment-file: ${{ matrix.environment-file }} |
| 32 | + micromamba-version: 'latest' |
| 33 | + |
| 34 | + - name: run tests - bash |
| 35 | + shell: bash -l {0} |
| 36 | + run: python -c 'import libpysal; libpysal.examples.fetch_all()' |
| 37 | + run: pytest -v libpysal --cov=libpysal --cov-report=xml |
| 38 | + if: matrix.os != 'windows-latest' |
| 39 | + |
| 40 | + - name: run tests - powershell |
| 41 | + shell: powershell |
| 42 | + run: python -c 'import libpysal; libpysal.examples.fetch_all()' |
| 43 | + run: pytest -v libpysal --cov=libpysal --cov-report=xml |
| 44 | + if: matrix.os == 'windows-latest' |
| 45 | + |
| 46 | + - name: ${{ matrix.os }}, ${{ matrix.environment-file }} |
52 | 47 | uses: codecov/codecov-action@v1 |
53 | 48 | with: |
54 | 49 | token: ${{ secrets.CODECOV_TOKEN }} |
|
0 commit comments