Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump actions/setup-python from 1 to 4 #59

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 18, 2023

Bumps actions/setup-python from 1 to 4.

Release notes

Sourced from actions/setup-python's releases.

v4.0.0

What's Changed

  • Support for python-version-file input: #336

Example of usage:

- uses: actions/setup-python@v4
  with:
    python-version-file: '.python-version' # Read python version from a file
- run: python my_script.py

There is no default python version for this setup-python major version, the action requires to specify either python-version input or python-version-file input. If the python-version input is not specified the action will try to read required version from file from python-version-file input.

  • Use pypyX.Y for PyPy python-version input: #349

Example of usage:

- uses: actions/setup-python@v4
  with:
    python-version: 'pypy3.9' # pypy-X.Y kept for backward compatibility
- run: python my_script.py
  • RUNNER_TOOL_CACHE environment variable is equal AGENT_TOOLSDIRECTORY: #338

  • Bugfix: create missing pypyX.Y symlinks: #347

  • PKG_CONFIG_PATH environment variable: #400

  • Added python-path output: #405 python-path output contains Python executable path.

  • Updated zeit/ncc to vercel/ncc package: #393

  • Bugfix: fixed output for prerelease version of poetry: #409

  • Made pythonLocation environment variable consistent for Python and PyPy: #418

  • Bugfix for 3.x-dev syntax: #417

  • Other improvements: #318 #396 #384 #387 #388

v3.1.4

What's Changed

In the scope of this patch release, the warning for deprecating Python 2.x was added in actions/setup-python#674 by @​dmitry-shibanov

For more information, check out actions/setup-python#672

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 1 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v1...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from asmeurer September 18, 2023 09:59
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 18, 2023

The following labels could not be found: github-actions, dependencies.

Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a dont-care, but may as well get it in.

@rgommers
Copy link
Member

rgommers commented Nov 9, 2023

It did show one failure, which is clearly unrelated to this PR but of interest:

FAILED array_api_tests/test_operators_and_elementwise_functions.py::test_multiply[__imul__(x1, x2)] - AssertionError: x1=(-5+92034536j), but should be roughly (x1 * x2)=(-3+92034537j) [__imul__()]
  x1=(15339089+15339090j), x2=(3+3j)
assert False
 +  where False = isclose(-5.0, -3.0, 3.4028234663852886e+38)
 +    where -5.0 = (-5+92034536j).real
 +    and   -3.0 = (-3+92034537j).real
Falsifying example: test_multiply(
    ctx=BinaryParamContext(<__imul__(x1, x2)>),
    data=data(...),
)
Draw 1 (x1): tensor(15339089.+15339090.j)
Draw 2 (x2): tensor(3.+3.j)

You can reproduce this example by temporarily adding @reproduce_failure('6.86.1', b'AXicY2eAgVd8gQhmEAMCMCMzAVPvAqE=') as a decorator on your test case
_______________________ test_multiply[__imul__(x1, x2)] ________________________

ctx = BinaryParamContext(<__imul__(x1, x2)>)

    @pytest.mark.parametrize("ctx", make_binary_params("multiply", dh.numeric_dtypes))
>   @given(data=st.data())

array_api_tests/test_operators_and_elementwise_functions.py:1254: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
array_api_tests/test_operators_and_elementwise_functions.py:1263: in test_multiply
    binary_param_assert_against_refimpl(ctx, left, right, res, "*", operator.mul)
array_api_tests/test_operators_and_elementwise_functions.py:673: in binary_param_assert_against_refimpl
    binary_assert_against_refimpl(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

func_name = '__imul__', left = tensor(15339089.+15339090.j)
right = tensor(3.+3.j), res = tensor(-5.+92034536.j)
refimpl = <built-in function mul>

    def binary_assert_against_refimpl(
        func_name: str,
        left: Array,
        right: Array,
        res: Array,
        refimpl: Callable[[T, T], T],
        *,
        res_stype: Optional[ScalarType] = None,
        filter_: Callable[[Scalar], bool] = default_filter,
        strict_check: Optional[bool] = None,
        left_sym: str = "x1",
        right_sym: str = "x2",
        res_name: str = "out",
        expr_template: Optional[str] = None,
    ):
        """
        Assert binary element-wise results are as expected.
    
        See unary_assert_against_refimpl for more information.
        """
        if expr_template is None:
            expr_template = func_name + "({}, {})={}"
        in_stype = dh.get_scalar_type(left.dtype)
        if res_stype is None:
            res_stype = dh.get_scalar_type(left.dtype)
        if res_stype is None:
            res_stype = in_stype
        if res.dtype == xp.bool:
            m, M = (None, None)
        elif res.dtype in dh.complex_dtypes:
            m, M = dh.dtype_ranges[dh.dtype_components[res.dtype]]
        else:
            m, M = dh.dtype_ranges[res.dtype]
        if left.dtype in dh.complex_dtypes:
            component_filter = copy(filter_)
            filter_ = lambda s: component_filter(s.real) and component_filter(s.imag)
        for l_idx, r_idx, o_idx in sh.iter_indices(left.shape, right.shape, res.shape):
            scalar_l = in_stype(left[l_idx])
            scalar_r = in_stype(right[r_idx])
            if not (filter_(scalar_l) and filter_(scalar_r)):
                continue
            try:
                expected = refimpl(scalar_l, scalar_r)
            except Exception:
                continue
            if res.dtype != xp.bool:
                if res.dtype in dh.complex_dtypes:
                    if expected.real <= m or expected.real >= M:
                        continue
                    if expected.imag <= m or expected.imag >= M:
                        continue
                else:
                    if expected <= m or expected >= M:
                        continue
            scalar_o = res_stype(res[o_idx])
            f_l = sh.fmt_idx(left_sym, l_idx)
            f_r = sh.fmt_idx(right_sym, r_idx)
            f_o = sh.fmt_idx(res_name, o_idx)
            expr = expr_template.format(f_l, f_r, expected)
            if strict_check == False or res.dtype in dh.all_float_dtypes:
                msg = (
                    f"{f_o}={scalar_o}, but should be roughly {expr} [{func_name}()]\n"
                    f"{f_l}={scalar_l}, {f_r}={scalar_r}"
                )
                if res.dtype in dh.complex_dtypes:
>                   assert isclose(scalar_o.real, expected.real, M), msg
E                   AssertionError: x1=(-5+92034536j), but should be roughly (x1 * x2)=(-3+92034537j) [__imul__()]
E                     x1=(15339089+15339090j), x2=(3+3j)
E                   assert False
E                    +  where False = isclose(-5.0, -3.0, 3.4028234663852886e+38)
E                    +    where -5.0 = (-5+92034536j).real
E                    +    and   -3.0 = (-3+92034537j).real
E                   Falsifying example: test_multiply(
E                       ctx=BinaryParamContext(<__imul__(x1, x2)>),
E                       data=data(...),
E                   )
E                   Draw 1 (x1): tensor(15339089.+15339090.j)
E                   Draw 2 (x2): tensor(3.+3.j)
E                   
E                   You can reproduce this example by temporarily adding @reproduce_failure('6.86.1', b'AXicY2eAgVd8gQhmEAMCMCMzAVPvAqE=') as a decorator on your test case

array_api_tests/test_operators_and_elementwise_functions.py:340: AssertionError
=============================== warnings summary ===============================
array-api/spec/API_specification/signatures/creation_functions.py:38
  /home/runner/work/array-api-compat/array-api-compat/array-api-tests/array-api/spec/API_specification/signatures/creation_functions.py:38: DeprecationWarning: invalid escape sequence '\s'
    """

array-api/spec/API_specification/signatures/linalg.py:447
  /home/runner/work/array-api-compat/array-api-compat/array-api-tests/array-api/spec/API_specification/signatures/linalg.py:447: DeprecationWarning: invalid escape sequence '\*'
    """

array-api/spec/API_specification/signatures/elementwise_functions.py:601
  /home/runner/work/array-api-compat/array-api-compat/array-api-tests/array-api/spec/API_specification/signatures/elementwise_functions.py:601: DeprecationWarning: invalid escape sequence '\s'
    """

../array-api-compat/array_api_compat/torch/_aliases.py:573
  /home/runner/work/array-api-compat/array-api-compat/array-api-compat/array_api_compat/torch/_aliases.py:573: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:84.)
    return torch.zeros(shape, dtype=dtype, device=device, **kwargs)

array_api_tests/__init__.py:49
  /home/runner/work/array-api-compat/array-api-compat/array-api-tests/array_api_tests/__init__.py:49: HypothesisWarning: Could not determine whether module array_api_compat.torch is an Array API library
    xps = array_api.make_strategies_namespace(_xp, api_version=api_version)

reporting.py:94
  /home/runner/work/array-api-compat/array-api-compat/array-api-tests/reporting.py:94: PytestDeprecationWarning: The hookimpl pytest_json_modifyreport uses old-style configuration options (marks or attributes).
  Please use the pytest.hookimpl(optionalhook=True) decorator instead
   to configure the hooks.
   See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
    @mark.optionalhook

reporting.py:47
  /home/runner/work/array-api-compat/array-api-compat/array-api-tests/reporting.py:47: PytestDeprecationWarning: The hookimpl pytest_metadata uses old-style configuration options (marks or attributes).
  Please use the pytest.hookimpl(optionalhook=True) decorator instead
   to configure the hooks.
   See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
    @mark.optionalhook

conftest.py:203
  /home/runner/work/array-api-compat/array-api-compat/array-api-tests/conftest.py:203: UserWarning: 1 ids in xfails file don't match any collected tests: 
      array_api_tests/test_array_object.py::test_getitem_masking
  (xfails file: /home/runner/work/array-api-compat/array-api-compat/array-api-compat/torch-xfails.txt)
  Note the relevant tests might not of been collected by pytest, or another specified id might have already matched a test.
    warnings.warn(

array-api-tests/array_api_tests/test_array_object.py: 754 warnings
array-api-tests/array_api_tests/test_creation_functions.py: 441 warnings
array-api-tests/array_api_tests/test_data_type_functions.py: 428 warnings
array-api-tests/array_api_tests/test_indexing_functions.py: 1 warning
array-api-tests/array_api_tests/test_linalg.py: 1 warning
array-api-tests/array_api_tests/test_manipulation_functions.py: 6 warnings
array-api-tests/array_api_tests/test_operators_and_elementwise_functions.py: 9 warnings
array-api-tests/array_api_tests/test_searching_functions.py: 3 warnings
array-api-tests/array_api_tests/test_set_functions.py: 4 warnings
array-api-tests/array_api_tests/test_sorting_functions.py: 2 warnings
array-api-tests/array_api_tests/test_statistical_functions.py: 4 warnings
array-api-tests/array_api_tests/test_utility_functions.py: 2 warnings
  /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/hypothesis/extra/array_api.py:699: HypothesisWarning: Array module array_api_compat.torch does not have the following dtypes in its namespace: uint16, uint32, uint64
    check_dtypes(xp, dtypes, stubs)

array-api-tests/array_api_tests/test_creation_functions.py::test_meshgrid
  /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/torch/functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3483.)
    return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]

array-api-tests/array_api_tests/test_utility_functions.py::test_any
  /home/runner/work/array-api-compat/array-api-compat/array-api-compat/array_api_compat/torch/_aliases.py:322: UserWarning: Casting complex values to real discards the imaginary part (Triggered internally at ../aten/src/ATen/native/Copy.cpp:276.)
    res = torch.any(x, **kwargs)

...

FAILED array_api_tests/test_operators_and_elementwise_functions.py::test_multiply[__imul__(x1, x2)] - AssertionError: x1=(-5+92034536j), but should be roughly (x1 * x2)=(-3+92034537j) [__imul__()]
  x1=(15339089+15339090j), x2=(3+3j)
assert False
 +  where False = isclose(-5.0, -3.0, 3.4028234663852886e+38)
 +    where -5.0 = (-5+92034536j).real
 +    and   -3.0 = (-3+92034537j).real
Falsifying example: test_multiply(
    ctx=BinaryParamContext(<__imul__(x1, x2)>),
    data=data(...),
)
Draw 1 (x1): tensor(15339089.+15339090.j)
Draw 2 (x2): tensor(3.+3.j)

You can reproduce this example by temporarily adding @reproduce_failure('6.86.1', b'AXicY2eAgVd8gQhmEAMCMCMzAVPvAqE=') as a decorator on your test case

@rgommers rgommers merged commit 51d7832 into main Nov 15, 2023
32 of 34 checks passed
@rgommers rgommers deleted the dependabot/github_actions/actions/setup-python-4 branch November 15, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant