Skip to content

Automated Latest Dependency Updates #296

Automated Latest Dependency Updates

Automated Latest Dependency Updates #296

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