From 490597a2a2b159388734cfbafa499a8749d6cc51 Mon Sep 17 00:00:00 2001 From: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> Date: Wed, 27 Jul 2022 23:13:23 -0300 Subject: [PATCH] Use latest (as of 2022-07-11) version of codecov action (#1099) * Use latest (as of 2022-07-11) version of codecov action Signed-off-by: Eduardo Apolinario * Add pytest-cov to dev requirements Signed-off-by: Eduardo Apolinario * Regenerate spark requirements. Signed-off-by: Eduardo Apolinario Co-authored-by: Eduardo Apolinario --- .github/workflows/pythonbuild.yml | 4 ++-- dev-requirements.in | 1 + dev-requirements.txt | 19 ++++++++++++------- requirements-spark2.txt | 6 +++--- requirements.txt | 6 +++--- 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pythonbuild.yml b/.github/workflows/pythonbuild.yml index fabb2e2983..b75b6dcad9 100644 --- a/.github/workflows/pythonbuild.yml +++ b/.github/workflows/pythonbuild.yml @@ -49,9 +49,9 @@ jobs: pip freeze - name: Test with coverage run: | - coverage run -m pytest tests/flytekit/unit -m "not sandbox_test" + pytest tests/flytekit/unit -m "not sandbox_test" --cov=./ --cov-report=xml - name: Codecov - uses: codecov/codecov-action@v1.5.2 + uses: codecov/codecov-action@v3.1.0 with: fail_ci_if_error: true # optional (default = false) diff --git a/dev-requirements.in b/dev-requirements.in index b2e6cf74a1..313ce1d82b 100644 --- a/dev-requirements.in +++ b/dev-requirements.in @@ -5,6 +5,7 @@ coverage[toml] joblib mock pytest +pytest-cov mypy pre-commit codespell diff --git a/dev-requirements.txt b/dev-requirements.txt index 3705a578c0..645ffbeb18 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -66,7 +66,9 @@ cookiecutter==2.1.1 # -c requirements.txt # flytekit coverage[toml]==6.4.1 - # via -r dev-requirements.in + # via + # -r dev-requirements.in + # pytest-cov croniter==1.3.5 # via # -c requirements.txt @@ -136,7 +138,7 @@ google-auth==2.9.0 # google-cloud-core google-cloud-bigquery==3.2.0 # via -r dev-requirements.in -google-cloud-bigquery-storage==2.13.2 +google-cloud-bigquery-storage==2.14.0 # via # -r dev-requirements.in # google-cloud-bigquery @@ -275,7 +277,7 @@ platformdirs==2.5.2 # via virtualenv pluggy==1.0.0 # via pytest -pre-commit==2.19.0 +pre-commit==2.20.0 # via -r dev-requirements.in prompt-toolkit==3.0.30 # via ipython @@ -340,8 +342,11 @@ pyrsistent==0.18.1 pytest==7.1.2 # via # -r dev-requirements.in + # pytest-cov # pytest-docker # pytest-flyte +pytest-cov==3.0.0 + # via -r dev-requirements.in pytest-docker==0.12.0 # via pytest-flyte pytest-flyte @ git+https://github.com/flyteorg/pytest-flyte@main @@ -356,7 +361,7 @@ python-dateutil==2.8.2 # pandas python-dotenv==0.20.0 # via docker-compose -python-json-logger==2.0.2 +python-json-logger==2.0.4 # via # -c requirements.txt # flytekit @@ -380,7 +385,7 @@ pyyaml==5.4.1 # docker-compose # flytekit # pre-commit -regex==2022.6.2 +regex==2022.7.9 # via # -c requirements.txt # docker-image-py @@ -444,7 +449,7 @@ tomli==2.0.1 # coverage # mypy # pytest -torch==1.11.0 +torch==1.12.0 # via -r dev-requirements.in traitlets==5.3.0 # via @@ -466,7 +471,7 @@ typing-inspect==0.7.1 # via # -c requirements.txt # dataclasses-json -urllib3==1.26.9 +urllib3==1.26.10 # via # -c requirements.txt # flytekit diff --git a/requirements-spark2.txt b/requirements-spark2.txt index 9b15318529..8398d30d1e 100644 --- a/requirements-spark2.txt +++ b/requirements-spark2.txt @@ -140,7 +140,7 @@ python-dateutil==2.8.2 # croniter # flytekit # pandas -python-json-logger==2.0.2 +python-json-logger==2.0.4 # via flytekit python-slugify==6.1.2 # via cookiecutter @@ -155,7 +155,7 @@ pyyaml==5.4.1 # -r requirements.in # cookiecutter # flytekit -regex==2022.6.2 +regex==2022.7.9 # via docker-image-py requests==2.28.1 # via @@ -192,7 +192,7 @@ typing-extensions==4.3.0 # typing-inspect typing-inspect==0.7.1 # via dataclasses-json -urllib3==1.26.9 +urllib3==1.26.10 # via # flytekit # requests diff --git a/requirements.txt b/requirements.txt index 7bc335f046..153da8b4d2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -138,7 +138,7 @@ python-dateutil==2.8.2 # croniter # flytekit # pandas -python-json-logger==2.0.2 +python-json-logger==2.0.4 # via flytekit python-slugify==6.1.2 # via cookiecutter @@ -153,7 +153,7 @@ pyyaml==5.4.1 # -r requirements.in # cookiecutter # flytekit -regex==2022.6.2 +regex==2022.7.9 # via docker-image-py requests==2.28.1 # via @@ -190,7 +190,7 @@ typing-extensions==4.3.0 # typing-inspect typing-inspect==0.7.1 # via dataclasses-json -urllib3==1.26.9 +urllib3==1.26.10 # via # flytekit # requests