-
Notifications
You must be signed in to change notification settings - Fork 72
72 lines (68 loc) · 2.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Unit and integration tests
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ "ubuntu-latest", "windows-latest" ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "11"
- uses: actions/cache@v2
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: "ile-de-france"
environment-file: environment.yml
python-version: "3.10"
channels: conda-forge
- name: Set up osmosis (Linux)
if: matrix.os == 'ubuntu-latest'
shell: bash -el {0}
run: |
wget https://github.com/openstreetmap/osmosis/releases/download/0.48.2/osmosis-0.48.2.tgz -O osmosis.tgz
mkdir $HOME/osmosis
tar xf osmosis.tgz -C $HOME/osmosis
echo $HOME/osmosis/bin >> $GITHUB_PATH
- name: Set up osmosis (Windows)
if: matrix.os == 'windows-latest'
shell: bash -el {0}
run: |
powershell -command "& { iwr https://github.com/openstreetmap/osmosis/releases/download/0.48.2/osmosis-0.48.2.zip -OutFile osmosis.zip }"
mkdir $HOME/osmosis
unzip osmosis.zip -d $HOME/osmosis
echo $HOME/osmosis/bin >> $GITHUB_PATH
- name: Prepare git for Windows
if: matrix.os == 'windows-latest'
shell: bash -el {0}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git config --system core.longpaths true
- name: Test versions
shell: bash -el {0}
run: |
java -version
mvn -v
python --version
osmosis -v
git --version
python -c "import fiona"
- name: Run pipeline tests
shell: bash -el {0}
run: |
MKL_CBWR=AUTO pytest tests/