setup-python VS cache

Compare setup-python vs cache and see what are their differences.

setup-python

Set up your GitHub Actions workflow with a specific version of Python (by actions)

cache

Cache dependencies and build outputs in GitHub Actions (by actions)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
setup-python cache
11 40
1,537 4,264
2.1% 1.5%
6.7 7.2
18 days ago 6 days ago
TypeScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

setup-python

Posts with mentions or reviews of setup-python. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-22.
  • CI/CI deploy a static website to AWS S3 bucket through Github Actions
    5 projects | dev.to | 22 Dec 2023
    Run a local host with the static website content with Python setup Github Actions
  • Disable Annotations in Github Actions
    5 projects | dev.to | 3 Sep 2023
    setup-python
  • Building project docs for GitHub Pages
    7 projects | dev.to | 29 Aug 2023
    The first two steps are setting up the job's environment. The checkout action will checkout out the repository at the triggering ref. The setup-python action will setup the desired Python runtime. My package supports Python 3.9+ so I'm targeting the minimum version for my build environments.
  • Gotchas when building GitHub self-hosted runners with AWS official AMIs/container images for Python apps
    2 projects | dev.to | 30 Sep 2022
    actions/setup-python@v4 does not support arm64 (https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json). See related Open issue https://github.com/actions/setup-python/issues/108.
  • Top 10 GitHub Actions You Should Use to set up your CI/CD Pipeline
    5 projects | dev.to | 12 Sep 2022
    The most popular ones are Node.js, Python, Java JDK, Go, .Net Core SDK.
  • Deploy Azure Static Web Apps using Python
    5 projects | dev.to | 3 Aug 2022
    To build your environment in GH Actions you'll need to add a block to your yaml file BEFORE the Azure Build and Deploy section. You'll need to include the setup-python action and specify the python version you would like to use. Use the major version of your python version so 3.10 and NOT 3.10.5. For more information and options on this you can check out the Setup-Python GH actions repo.
  • Deploying to GitHub Pages using GitHub Actions
    10 projects | dev.to | 25 Jan 2022
    Next up we'll need to add a step to compile our production ready build. For this we can add two new steps, one which configures our Node version to ensure it matches our application, followed by another that runs the necessary commands with npm. Depending on how your application is built you may need to add another step between these to install any sort of required environments such as Python or Java.
  • Air Quality - Pollutant Index - India
    2 projects | dev.to | 24 Nov 2021
    Python 3.9 is setup using actions/[email protected] and the pip packages are cached
  • Prefect CLI Action
    4 projects | dev.to | 21 Nov 2021
    It requires that the checkout and setup-python actions be used first.
  • Python CI/CD with GitHub Actions
    6 projects | dev.to | 9 May 2021
    First, we have to checkout the repository in GitHub Actions using GitHub's own checkout action. Then, we have to set up the Python version using GitHub's setup-python action. Finally, we can use Black's provided GitHub Action for checking formatting - it runs black --check --diff on the workflow runner's clone of the repo and outputs an error code if any Python file in the repo fails Black's formatting rules. Note that Black fails if the AST cannot be parsed (i.e. if there are any syntax errors), so it can also be used for checking syntax correctness, which itself is a good proxy for checking for merge conflict strings.

cache

Posts with mentions or reviews of cache. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-22.
  • GitHub Actions could be so much better
    21 projects | news.ycombinator.com | 22 Sep 2023
    > with no persistent storage

    There's https://github.com/actions/cache though?

  • Optimizing GitHub Actions Performance: Enhance Workflows with Caching
    5 projects | dev.to | 19 Jun 2023
    Use Cache Actions: GitHub Actions provides cache actions that simplify caching implementation. The @actions/cache JavaScript library is a popular choice for managing caching in workflows. It offers flexible options for storing and retrieving cache artifacts based on keys, scopes, and paths.
  • Speeding up GitHub Actions with npm cache
    3 projects | dev.to | 1 Jun 2023
    GitHub maintain a set of repos called actions. One of which is called cache.
  • How I Sliced Deployment Times to a Fraction and Achieved Lightning-Fast Deployments with GitHub Actions
    5 projects | dev.to | 17 May 2023
    By utilizing the actions/cache action action, we implemented a strategy to store and retrieve dependencies, preventing redundant installations.
  • Use GitHub Actions to Make Your GitHub Profile Dynamic
    3 projects | news.ycombinator.com | 10 Apr 2023
    I do think it's good practice to enable caching, such that your script doesn't hit RubyGems / pip / npm / etc every time it runs.

    That way at least the automation activity stays entirely within the GitHub / Azure network.

    It looks like you can do that for Ruby by adding this:

    https://github.com/actions/cache/blob/master/examples.md#rub...

        - uses: ruby/setup-ruby@v1
  • A guide to using act with GitHub Actions
    5 projects | dev.to | 23 Mar 2023
    ➜ getting-started-with-act git:(master) act -j build WARN ⚠ You are using Apple M1 chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠ [Node.js CI/build] 🚀 Start image=node:16-buster-slim [Node.js CI/build] 🐳 docker pull image=node:16-buster-slim platform= username= forcePull=false [Node.js CI/build] 🐳 docker create image=node:16-buster-slim platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [Node.js CI/build] 🐳 docker run image=node:16-buster-slim platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [Node.js CI/build] ☁ git clone 'https://github.com/actions/setup-node' # ref=v3 [Node.js CI/build] ☁ git clone 'https://github.com/actions/cache' # ref=v3 [Node.js CI/build] ☁ git clone 'https://github.com/actions/upload-artifact' # ref=v3 [Node.js CI/build] ⭐ Run Main actions/checkout@v3 [Node.js CI/build] 🐳 docker cp src=/Users/andrewevans/Documents/projects/getting-started-with-act/. dst=/Users/andrewevans/Documents/projects/getting-started-with-act [Node.js CI/build] ✅ Success - Main actions/checkout@v3 [Node.js CI/build] ⭐ Run Main Use Node.js 16.x [Node.js CI/build] 🐳 docker cp src=/Users/andrewevans/.cache/act/actions-setup-node@v3/ dst=/var/run/act/actions/actions-setup-node@v3/ [Node.js CI/build] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-node@v3/dist/setup/index.js] user= workdir= [Node.js CI/build] 💬 ::debug::isExplicit: [Node.js CI/build] 💬 ::debug::explicit? false
  • duplicated cache by cache action
    2 projects | /r/github | 21 Feb 2023
  • runner image with MS office installed - do-able? is there a better way?
    2 projects | /r/github | 30 Dec 2022
    You could try to find some point in the process where you can set up Actions caches with actions/cache, otherwise Container customization for Self-Hosted Runners is currently in Beta.
  • [Question] Decrease Docker image's build time
    2 projects | /r/devops | 27 Sep 2022
    I would configure Github Actions cache so Docker doesn't have to compile all layers from scratch every time
  • The strongest principle of the blog's growth lies in the human choice to deploy it
    14 projects | dev.to | 3 Sep 2022
    In the copied example, npm caching is done via actions/cache@v2 action. But we can simplify our workflow by dropping this step and using built-in functionality for caching

What are some alternatives?

When comparing setup-python and cache you can also consider the following projects:

checkout - Action for checking out a repo

upload-artifact

virtual-environments - GitHub Actions runner images [Moved to: https://github.com/actions/runner-images]

sccache - Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.

pyenv - Simple Python version management

act - Run your GitHub Actions locally 🚀

black - The uncompromising Python code formatter

actions-runner-controller - Kubernetes controller for GitHub Actions self-hosted runners

upload-pages-artifact - A composite action for packaging and uploading an artifact that can be deployed to GitHub Pages.

setup-buildx-action - GitHub Action to set up Docker Buildx

github-pages-deploy-action - 🚀 Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.