-
Notifications
You must be signed in to change notification settings - Fork 878
63 lines (63 loc) · 2.37 KB
/
install_test.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
61
62
63
name: Install Test
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- main
env:
ALTERYX_OPEN_SRC_UPDATE_CHECKER: False
jobs:
install_ft_complete:
name: ${{ matrix.os }} - ${{ matrix.python_version }} install featuretools complete
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python_version: ["3.8", "3.9", "3.10"]
exclude:
- python_version: "3.10"
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Set up python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- uses: actions/cache@v3
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ matrix.os- }}-${{ matrix.python_version }}-install-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml') }}-v01
- name: Build featuretools package
run: |
make package
- name: Install complete version of featuretools from sdist (not using cache)
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install "unpacked_sdist/[complete]"
- name: Install complete version of featuretools from sdist (using cache)
if: steps.cache.outputs.cache-hit == 'true'
run: |
python -m pip install "unpacked_sdist/[complete]" --no-deps
- name: Test by importing packages
run: |
python -c "import alteryx_open_src_update_checker"
python -c "import premium_primitives"
python -c "from premium_primitives import PolarityScore"
python -c "from featuretools.primitives import PolarityScore"
python -c "from featuretools.primitives import CountryCodeToContinent"
python -c "from featuretools_sql import DBConnector"
- name: Check package conflicts
run: |
python -m pip check
- name: Verify extra_requires commands
run: |
python -m pip install "unpacked_sdist/[nlp,spark,updater,sql,premium]"