Debian Codegraph @

.github/workflows/tests.yaml

raw symbols SCIP
1 name: Tests
2
3 on:
4 push:
5 branches:
6 - "*"
7 pull_request:
8 branches:
9 - "*"
10 schedule:
11 - cron: "59 23 * * 3"
12
13 jobs:
14 unittests:
15 name: ${{ matrix.os }}, ${{ matrix.environment-file }}
16 runs-on: ${{ matrix.os }}-latest
17 timeout-minutes: 30
18 strategy:
19 fail-fast: false
20 matrix:
21 os: [macos, ubuntu, windows]
22 environment-file:
23 [ci/envs/38-minimal.yaml, ci/envs/311-latest-conda-forge.yaml]
24 include:
25 - os: ubuntu
26 environment-file: ci/envs/310-conda-forge.yaml
27 - os: ubuntu
28 environment-file: ci/envs/39-conda-forge.yaml
29 defaults:
30 run:
31 shell: bash -l {0}
32
33 steps:
34 - name: checkout repo
35 uses: actions/checkout@v4
36
37 - name: setup micromamba
38 uses: mamba-org/setup-micromamba@v1
39 with:
40 environment-file: ${{ matrix.environment-file }}
41 micromamba-version: "latest"
42
43 - name: Install contextily
44 run: pip install .
45
46 - name: run tests
47 run: pytest -v . --cov=contextily --cov-append --cov-report term-missing --cov-report xml --color=yes
48
49 - uses: codecov/codecov-action@v4