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

GitHub-Action-for-pytest fails (outdated) #69

Closed
fhemberger opened this issue Sep 1, 2023 · 0 comments
Closed

GitHub-Action-for-pytest fails (outdated) #69

fhemberger opened this issue Sep 1, 2023 · 0 comments

Comments

@fhemberger
Copy link
Owner

fhemberger commented Sep 1, 2023

cclauss/GitHub-Action-for-pytest@0.5.0 is still based on Python 3.7, hasn't been updated in five years and a two year old PR of mine to use Dependabot to update its build depencencies hasn't been looked at.

Updating our base image to Python 3.11.5-alpine throws the following error:

Collecting PyYAML==5.4.1 (from -r requirements-frozen.txt (line 3))
  Downloading PyYAML-5.4.1.tar.gz ([17](https://github.com/fhemberger/mqtt_exporter/actions/runs/6045139442/job/16404731144?pr=68#step:4:18)5 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 17.4 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [62 lines of output]
      running egg_info
      writing lib3/PyYAML.egg-info/PKG-INFO
      writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
      writing top-level names to lib3/PyYAML.egg-info/top_level.txt
      /tmp/pip-build-env-h6q4hkkl/overlay/lib/python3.7/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
      !!
      
              ********************************************************************************
              The license_file parameter is deprecated, use license_files instead.
      
              By [20](https://github.com/fhemberger/mqtt_exporter/actions/runs/6045139442/job/16404731144?pr=68#step:4:21)[23](https://github.com/fhemberger/mqtt_exporter/actions/runs/6045139442/job/16404731144?pr=68#step:4:24)-Oct-[30](https://github.com/fhemberger/mqtt_exporter/actions/runs/6045139442/job/16404731144?pr=68#step:4:31), you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************

GitHub docs recommend installing pytest as part of the workflow:
https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#testing-your-code

fhemberger added a commit that referenced this issue Sep 9, 2023
Frozen dependencies where vastly outdated, e.g. causing insallation
errors for PyYAML in Python's setuptools.
fhemberger added a commit that referenced this issue Sep 11, 2023
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

No branches or pull requests

1 participant