forked from voltdatalab/crossfire
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (67 loc) · 2.09 KB
/
github-actions.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
name: 'Check test, code style and linter'
'on':
- push
- pull_request
jobs:
build_with_basic_dependencies:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: (basic dependencies) Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and configure Poetry
uses: snok/install-poetry@v1
- name: Install basic dependencies
run: |
poetry install
- name: Run tests with basic dependencies
run: |
poetry run pytest
build_with_pandas_only:
needs: build_with_basic_dependencies
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: (Pandas only) Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and configure Poetry
uses: snok/install-poetry@v1
- name: Install pandas dependencies
run: |
poetry install --extras "df"
- name: Run tests with pandas only
run: |
poetry run pytest
build_with_pandas_and_geopandas:
needs: [build_with_basic_dependencies, build_with_pandas_only]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: (Pandas & GeoPandas) Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and configure Poetry
uses: snok/install-poetry@v1
- name: Install pandas & geopandas dependencies
run: |
poetry install --extras "geodf"
- name: Run tests with pandas & geopandas
run: |
poetry run pytest