Skip to content

Commit 0bbf959

Browse files
authored
Merge pull request #121 from jkonecny12/1.1-add-test-container
Add test execution in a container and GH actions
2 parents 6ecc84b + 40dfdc0 commit 0bbf959

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/validate.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: validate
2+
on: [push, pull_request]
3+
jobs:
4+
ubi8:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Clone repository
8+
uses: actions/checkout@v3
9+
10+
- name: Run test
11+
run: |
12+
make container-ci

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,10 @@ bumpver: po-push
128128

129129
ci: check test
130130

131-
.PHONY: clean install tag archive local
131+
# Run tests in the container but with fixed pylint version
132+
container-ci:
133+
podman run --pull=always --rm -v .:/simpleline:Z --workdir /simpleline registry.access.redhat.com/ubi8:latest sh -c " \
134+
dnf install -y python3-pip python3-gobject-base make && pip3 install pocketlint 'pylint==2.5.3' ; \
135+
make ci"
136+
137+
.PHONY: clean install tag archive local ci container-ci

0 commit comments

Comments
 (0)