github-actions

34 posts tagged “github-actions”.

  1. 2023
  2. Storing files in an S3 bucket between GitHub Actions runs

    For my git-history live demos I needed to store quite large files ( 200MB SQLite databases) in between GitHub Actions runs, to avoid having to recreate the entire file from scratch every time.

    1 min read
  3. Check spelling using codespell

    Today I discovered codespell via this Rich commit. is a really simple spell checker that can be run locally or incorporated into a CI flow. codespell is designed to run against source code.

    1 min read
  4. Using the GitHub Actions cache with npx and no package.json

    Some of my repositories have GitHub Actions workflows that execute commands using , for example my graphql-scraper repo using to install and run the tool: npx get-graphql-schema…

    1 min read
  5. Building and deploying a custom site using GitHub Actions and GitHub Pages

    I figured out a minimal pattern for building a completely custom website using GitHub Actions and deploying the result to GitHub Pages. First you need to enable GitHub Pages for the repository.

    1 min read
  6. Optimizing PNGs in GitHub Actions using Oxipng

    My datasette-screenshots repository generates screenshots of Datasette using my shot-scraper tool, for people who need them for articles or similar.

    2 min read
  7. Building Mastodon bots with GitHub Actions and toot

    Twitter announced today that they'll be ending free API access for bots. My @covidsewage Twitter bot posts a screenshot of the latest Covid sewage data for parts of the San Francisco Bay Area every…

    2 min read
  8. GitHub Actions job summaries

    New feature announced here. Here's the full documentation. These are incredibly easy to use. GitHub creates a file in your workspace and puts the filename in , so you can build the summary markdown…

    1 min read
  9. Running tests against PostgreSQL in a service container

    I wanted to run some Django tests - using and with Django configured to pick up the environment variable via dj-database-url - against a PostgreSQL server running in GitHub Actions.

    1 min read
  10. Creating GitHub repository labels with an Actions workflow

    Newly created GitHub repositories come with a default set of labels. I have several labels I like to add on top of these.

    2 min read
  11. Code coverage using pytest and codecov.io

    I got my asgi-csrf Python package up to 100% code coverage. Here's the pull request. I started by installing and using the pytest-cov pytest plugin.

    1 min read
  12. Dump out all GitHub Actions context

    Useful for seeing what's available for conditions (see context and expression syntax). I copied this example action from here and deployed it here. Here's an example run.

    1 min read
  13. Set environment variables for all steps in a GitHub Action

    From this example I learned that you can set environment variables such that they will be available in ALL jobs once at the top of a workflow: I had previously been using this much more verbose…

    1 min read
  14. Updating a Markdown table of contents with a GitHub Action

    markdown-toc is a Node script that parses a Markdown file and generates a table of contents for it, based on the headings.

    1 min read
  15. Talking to a PostgreSQL service container from inside a Docker container

    I have a Django application which uses PostgreSQL. I build the Django application into its own Docker container, push that built container to the GitHub package registery and then deploy that…

    1 min read