Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'

jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python: python3.6
dist: ubuntu:bionic
- python: python3.8
dist: ubuntu:focal
#- python: python3.10
# dist: ubuntu:jammy
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error you had mentioned looks like this: mosquito/cysystemd#36

A comment there recommends doing pip install cysystemd instead, and indeed the PyPI page for systemd actually links to the cysystemd repository. So maybe changing that in run.sh would make things work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe? I'd say that is a separate change. My goal here is just to port the existing CI, not to improve/update the things we test. :) I had to change to newer Ubuntu releases since the old ones are no longer available or stopped working with recent pip packages, but I don't plan to do any more here than is necessary to maintain the old level of test coverage.

steps:
- uses: actions/checkout@v3
- name: Pull docker container
run: docker pull ${{ matrix.dist }}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there really a good reason to use Docker manually at this point? If I remember correctly, that was mainly a Travis CI thing? Couldn't we just use runs-on: ${{ matrix.dist }} above and run the script directly instead (probably after running setup-python).

Btw, to try those things out locally, there's act, in case you weren't aware of it yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. As I just wrote in the other thread, I wanted to do the bare minimum of work to get CI green again. So this was the easiest thing to do. Feel free to simplify the setup in follow-up changes. :)

- name: Run test
run: docker run -v $PWD:/build/ -e PYTHON="${{ matrix.python }}" "${{ matrix.dist }}" /build/ci/run.sh
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.