-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nicola Sella <[email protected]>
- Loading branch information
Showing
7 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
summary: Run Python Podman Tests | ||
|
||
discover: | ||
how: fmf | ||
execute: | ||
how: tmt | ||
prepare: | ||
- name: pkg dependencies | ||
how: install | ||
package: | ||
- make | ||
- python3-pip | ||
|
||
- name: pip dependencies | ||
how: shell | ||
script: | ||
- make | ||
|
||
- name: ssh configuration | ||
how: shell | ||
script: | ||
- ssh-keygen -t ecdsa -b 521 -f /root/.ssh/id_ecdsa -P "" | ||
- cp /root/.ssh/authorized_keys /root/.ssh/authorized_keys% | ||
- cat /root/.ssh/id_ecdsa.pub >>/root/.ssh/authorized_keys | ||
|
||
/upstream: | ||
/lint: | ||
summary: Run Python Podman Tests on upstream PRs | ||
discover+: | ||
test: /tests/lint | ||
|
||
/integration_tests: | ||
summary: Run Python Podman Tests on upstream PRs | ||
discover+: | ||
test: /tests/integration_tests | ||
|
||
adjust+: | ||
enabled: false | ||
when: initiator is not defined or initiator != packit | ||
|
||
/downstream: | ||
summary: Run Python Podman Tests on bodhi / errata and dist-git PRs | ||
discover+: | ||
test: /tests/integration_tests | ||
|
||
adjust+: | ||
enabled: false | ||
when: initiator == packit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
PYTHON ?= $(shell command -v python3 2>/dev/null || command -v python || which python3) | ||
tox -e coverage,py39,py310,py311,py312,py313 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
PYTHON ?= $(shell command -v python3 2>/dev/null || command -v python || which python3) | ||
python3 -m tox -e format,lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require: | ||
- make | ||
- python3-pip | ||
|
||
/lint: | ||
tag: [ upstream ] | ||
summary: Run Linting on the whole codebase | ||
test: lint.sh | ||
|
||
/integration_tests: | ||
tag: [ upstream, downstream ] | ||
summary: Run integration tests | ||
test: integration.sh |