Jacob Kaplan-Moss

Tag: github actions

TIL: Bi-directional sync between Mastodon and Twitter using Github Actions November 2nd, 2022

After setting up my Mastodon instance, I wanted to set up bi-directional sync between Mastodon and Twitter. I wanted to be able to post to either platform, and have it show up on the other. Andrew recommended mastodon-twitter-sync, but like the Mastodon instance itself, I didn’t want to have to operate a server tu run this on. Github Actions is great for things like this: though it bills itself as a CI/CD tool, it’s also a great way to run random bits of code on a schedule.…

TIL: Testing a Poetry project with Github Actions January 27th, 2022

I’ve got a few rounds on getting a good Github Action for testing a Poetry project. Yesterday I finally got one that works as well as I’d like - in particular this means good caching so that run times as as fast as possible. Here’s the action, with some comments about the mildly trickly parts: # Run this job on pushes to `main`, and for pull requests. If you don't specify # `branches: [main], then this actions runs _twice_ on pull requests, which is # annoying.…