-
Notifications
You must be signed in to change notification settings - Fork 6
add GHA CI configuration #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Pull docker container | ||
| run: docker pull ${{ matrix.dist }} | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 Btw, to try those things out locally, there's act, in case you weren't aware of it yet.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
This file was deleted.
There was a problem hiding this comment.
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 cysystemdinstead, and indeed the PyPI page forsystemdactually links to thecysystemdrepository. So maybe changing that inrun.shwould make things work?There was a problem hiding this comment.
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.