-
Notifications
You must be signed in to change notification settings - Fork 2.2k
46 lines (39 loc) · 1.19 KB
/
test_code.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: Code Tests
on:
pull_request:
push:
branches:
- main
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.12"]
experimental: [false]
include:
- python-version: "3.12"
os: "ubuntu-latest"
experimental: true
fail-fast: false
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- name: Setup Micromamba env
uses: mamba-org/setup-micromamba@v1
with:
environment-name: TEST
create-args: >-
python=${{ matrix.python-version }}
--file requirements.txt
--file requirements-dev.txt
- name: Install nightly versions of dependencies
if: matrix.experimental == true
run: python -m pip install --pre --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --extra-index-url https://pypi.org/simple numpy pandas shapely -U
- name: Install folium from source
run: python -m pip install -e . --no-deps --force-reinstall
- name: Code tests
run: python -m pytest -vv --ignore=tests/selenium