dev-requirements: bump kfp version to 1.8.22 to fix PyYaml issue #2626
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Unittests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
unittest: | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, '3.10'] | |
platform: [ubuntu-20.04] | |
include: | |
- python-version: 3.9 | |
platform: macos-12-xl | |
fail-fast: false | |
env: | |
OS: ${{ matrix.platform }} | |
PYTHON: ${{ matrix.python-version }} | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Checkout TorchX | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
set -eux | |
pip install pytest pytest-cov | |
pip install -e .[dev] | |
- name: Run tests | |
run: pytest --cov=./ --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
env_vars: OS,PYTHON | |
fail_ci_if_error: true | |
files: ./coverage.xml,!./cache | |
flags: unittests | |
verbose: true |