Skip to content

Commit c59c341

Browse files
committed
Add a Github Action workflow to run CI checks
I can't really test this, but I think it ought to work. This should run the container unit tests, pylint, and flake8 checks on each pull request. This also removes .travis.yml, as we clearly haven't used travis for about a decade at this point. Signed-off-by: Adam Williamson <[email protected]>
1 parent 2eb842a commit c59c341

File tree

2 files changed

+41
-33
lines changed

2 files changed

+41
-33
lines changed

.github/workflows/ci.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Run CI checks
3+
4+
on: [pull_request]
5+
6+
jobs:
7+
unittests-fedora:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout the repo
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- name: Install make and docker
15+
run: apt-get install make docker docker.io
16+
- name: Run the tests
17+
run: make container-unittests-fedora
18+
unittests-el7:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout the repo
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
- name: Install make and docker
26+
run: apt-get install make docker
27+
- name: Run the tests
28+
run: make container-unittests-el7
29+
lint:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout the repo
33+
uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
36+
- name: Install make, pylint and flake8
37+
run: apt-get install make pylint flake8
38+
- name: Run pylint
39+
run: make pylint
40+
- name: Run flake8
41+
run: make flake8

.travis.yml

-33
This file was deleted.

0 commit comments

Comments
 (0)