No description
Find a file
Alec Delaney e9f0c3911c
Merge pull request #23 from adafruit/local-repo-no-rev
don't error for (local) repos with no rev key
2024-01-29 21:47:39 -05:00
.github we need an empty requirements file 2024-01-29 15:59:45 -06:00
LICENSES Apply SPDX copyright and license headers in compliance with REUSE. 2020-05-15 16:44:30 +01:00
.gitignore Apply SPDX copyright and license headers in compliance with REUSE. 2020-05-15 16:44:30 +01:00
.pre-commit-config.yaml Update pre-commut hooks 2024-01-08 22:30:33 -05:00
.pylintrc Added pylint config file 2023-07-11 20:36:25 -04:00
check_lib_packaging.py Add script for checking library packaging 2023-05-29 15:47:14 -04:00
install.sh Added script for printing out pre-commit hook versions 2023-07-11 20:36:59 -04:00
LICENSE Update copyright in LICENSE to just reference Adafruit Industries. 2020-05-15 16:44:30 +01:00
print_precommit_versions.py don't error for (local) repos with no rev key 2024-01-29 15:50:18 -06:00
README.md Update CI action versions 2023-05-12 11:24:15 -04:00
requirements.txt Added script for printing out pre-commit hook versions 2023-07-11 20:36:59 -04:00
run_local_actions.sh Add licensing info to run_local_actions 2020-10-01 11:57:58 -06:00

Actions CI CircuitPython Install Script

The purpose of this repo is to create a centrally managed dependency install script for all Adafruit CircuitPython Library Github Actions. This will allow us to easily update the install steps without having to manually or programatically update 200+ GitHub workflows.

We have a Learn guide that you can use to follow along to using GitHub Actions.

Using in Workflow Files

To use the install script in workflow files, you'll need to check out this repository, followed by running the install.sh bash script.

You can clone and checkout this repo in a GitHub Actions workflow file using actions/checkout:

- name: Checkout tools repo
  uses: actions/checkout@v3
  with:
    repository: adafruit/actions-ci-circuitpython-libs
    path: actions-ci

In the example above, the repo is now cloned as actions-ci.

The dependencies can then be downloaded using install.sh:

- name: Install dependencies
  run: |
    source action-ci/install.sh    

This will handle installing all the needed dependencies for the given library.