-
Notifications
You must be signed in to change notification settings - Fork 487
46 lines (39 loc) · 1.07 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
defaults:
run:
shell: bash -elo pipefail {0}
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Create environment with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-environment: true
environment-file: environment.yml
post-cleanup: none
- name: Test environment
run: |
python -m ipykernel install --sys-prefix --name ppde642 --display-name "Python (ppde642)"
conda list
conda info --all
jupyter kernelspec list
ipython -c "import osmnx; print('OSMnx version', osmnx.__version__)"
- name: Lint
run: |
SKIP=no-commit-to-branch pre-commit run --all-files