-
Notifications
You must be signed in to change notification settings - Fork 21
57 lines (57 loc) · 1.99 KB
/
tests_with_latest_deps.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
name: Tests
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- main
workflow_dispatch:
env:
PYARROW_IGNORE_TIMEZONE: 1
ALTERYX_OPEN_SRC_UPDATE_CHECKER: False
jobs:
unit_latest_tests:
name: ${{ matrix.python_version }} ${{ matrix.directories }} Unit Tests
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python_version: ["3.9", "3.10", "3.11", "3.12"]
directories: ["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
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 2
- name: Build woodwork package
run: make package
- name: Set up pip
run: |
pip config --site set global.progress_bar off
- name: Install woodwork with test requirements
run: |
python -m pip install -e unpacked_sdist/[test]
- if: ${{ matrix.python_version == 3.9 && matrix.directories == 'Core' }}
name: Run Unit Tests with core requirements with code coverage
run: |
cd unpacked_sdist
pytest woodwork/ -n 2 --durations 0 --cov=woodwork --cov-config=../pyproject.toml --cov-report=xml:../coverage.xml
- if: ${{ matrix.python_version != 3.9 && matrix.directories == 'Core' }}
name: Run Unit Tests with core requirements without code coverage
run: |
cd unpacked_sdist
pytest woodwork/ -n 2
- if: ${{ matrix.python_version == 3.9 && matrix.directories == 'Core' }}
name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ${{ github.workspace }}/coverage.xml
verbose: true