-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 1.72 KB
/
install.yaml
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
name: Test installation
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * 3'
jobs:
test-pypi-install:
name: Test PyPI install (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: [ "3.9", "3.10", "3.11" ]
steps:
- name: Set up Python "${{ matrix.python-version }}"
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Install
run: |
pip install --upgrade pip
pip install faostat-data-primap
- name: Checkout repository
uses: actions/checkout@v4
- name: Test installation
run: |
which python
python scripts/test-install.py
test-micromamba-installation:
name: Test (micro)mamba install (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: [ "3.9", "3.10", "3.11" ]
steps:
- name: Setup (micro)mamba and install package
uses: mamba-org/setup-micromamba@v1
with:
environment-name: test-mamba-install
create-args: >-
python=${{ matrix.python-version }}
-c conda-forge
faostat-data-primap
init-shell: bash
- name: Checkout repository
uses: actions/checkout@v4
- name: Test installation
shell: bash -leo pipefail {0}
run: |
which python
python scripts/test-install.py