act demo
A ~15min intro to act for linux or macos
Table of Contents
Installation
e.g. via homebrew
brew install act
Recommended: Install GitHub Local Actions
GitHub Local Actions is an extension for act on VS code and it is awesome. This is an optional but highly recommended step.
Requirements
A running container!
Below is a quick example of installing and starting a docker engine with colima (see colima-demo for more info ☺️)
Install colima
brew install colima
Install docker
brew install docker
Start up docker
colima start
Demo
The fine-memes project
It is a dummy package for our demo that retrieves and displays random meme images from imgflip.com.
Installation
#pip install fine-memes
# For development
uv sync --all-groups
Usage
# import
from fine_memes import random_meme
# open rando meme
random_meme(
notebook=False, #default, set to True if wanting to render in jupyter notebook
)
see tryitout.ipynb
Add changes
e.g.
- create a copy of the
yofunction in ./fine_memes/__init__.py - give this new function a name of your choosing and change the img url
- create a copy of the
test_yotest in ./tests/test_fine_memes.py as well
Getting started with act
Now let's see some CI/CD in action
- Run a job
act -j test
- Trigger an event
act pull_request
- Now try running jobs from the GitHub Local Actions
Then if happy with act results then actually trigger the GitHub Actions e.g. make a pull_request
Links
Thank you
Thank you to the above resources, imgflip.com, and for your attention :)
Metadata
Release files for fine-memes 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fine_memes-1.0.0.tar.gz | 390.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fine_memes-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 406.5 kB
Release files / fine_memes-1.0.0.tar.gz
| Download URL | fine_memes-1.0.0.tar.gz |
|---|---|
| Size | 390.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0a1430915579d4302a2f30972cc1e7414a5d1a134101a317eaee8dff02acc0e
|
|
BLAKE2b-256 checksum How to use checksums |
407644735a5fd89e970a8087e0dd9a26a44bddd0856f0d036e70115341ac4b4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency logRelease files / fine_memes-1.0.0-py3-none-any.whl
| Download URL | fine_memes-1.0.0-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bea72b69ee86db1391c2d46b5b68aff8331618c9759c38db5fbb4cf2a8706ae0
|
|
BLAKE2b-256 checksum How to use checksums |
c11dd4a6ef1b61c323b1d735164bdd62ffee861db90c9d18d5ef59e774bedf7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency log