-
Notifications
You must be signed in to change notification settings - Fork 87
55 lines (55 loc) · 2.09 KB
/
unit_tests_with_featuretools_main_branch.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
name: Unit Tests - EvalML with Featuretools main branch
on:
workflow_dispatch:
jobs:
unit_tests_featuretools_main:
if: ${{ github.repository_owner == 'alteryx' }}
name: ${{ matrix.python_version }} unit tests ${{ matrix.libraries }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python_version: ["3.8", "3.9"]
libraries: ["core"]
steps:
- name: Set up python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Checkout repository
uses: actions/checkout@v3
- name: Update apt and install Graphviz
run: sudo apt update && sudo apt install -y graphviz
- name: Set up pip
run: |
pip config --site set global.progress_bar off
python -m pip install -U pip
- name: Install EvalML & Featuretools - test requirements
run: |
make installdeps-prophet
make installdeps-test
python -m pip uninstall -y featuretools
python -m pip install https://github.com/alteryx/featuretools/archive/main.zip
- name: Run unit tests without code coverage
run: |
echo "Run unit tests without code coverage for ${{ matrix.python_version }} and ${{ matrix.libraries }}"
echo "Testing with EvalML version:" `python -c "import evalml; print(evalml.__version__)"`
pytest evalml/ -n 2 --ignore=evalml/tests/automl_tests/parallel_tests
pip check
slack_alert_failure:
name: Send Slack alert if failure
needs: unit_tests_featuretools_main
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- name: Send Slack alert if failure
if: ${{ needs.unit_tests_featuretools_main.result != 'success' }}
id: slack
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_FT_TO_EVALML_WEBHOOK }}