-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Card ID: ENT-3759 (Adapted from 17e72fe)
- Loading branch information
Showing
5 changed files
with
59 additions
and
13 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,33 @@ | ||
name: pytest | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pytest: | ||
name: "pytest" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: "CentOS 7" | ||
image: "quay.io/centos/centos:centos7" | ||
pytest_args: '' | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.image }} | ||
|
||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Run container-pre-test.sh" | ||
run: | | ||
bash scripts/container-pre-test.sh | ||
- name: "Run nosetest" | ||
run: | | ||
nosetests -v -c playpen/noserc.ci |
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 |
---|---|---|
@@ -1,10 +1,3 @@ | ||
[nosetests] | ||
with-randomly=True | ||
with-xvfb=True | ||
with-id=True | ||
with-coverage=True | ||
cover-html=True | ||
cover-xml=True | ||
cover-erase=True | ||
with-xunit=True | ||
attr=!zypper,!functional | ||
attr=!zypper,!functional,!gui,!dbus |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ python-dateutil==1.5;python_version<="2.7" | |
python-dateutil>=2.0;python_version>="3.0" | ||
|
||
configparser<5 | ||
M2crypto |
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,24 @@ | ||
#!/bin/bash | ||
|
||
yum install -y epel-release | ||
|
||
# Install essential packages | ||
yum install -y \ | ||
git gcc make python python-devel python-setuptools python-pip | ||
|
||
# Install system, build and runtime packages | ||
yum install -y \ | ||
gtk3-devel python-ethtool \ | ||
openssl-devel swig | ||
|
||
localedef -c -i en_US -f ISO-8859-1 en_US | ||
localedef -c -i en_US -f UTF-8 en_US.UTF-8 | ||
localedef -c -i de_DE -f UTF-8 de_DE.UTF-8 | ||
localedef -c -i ja_JP -f UTF-8 ja_JP.UTF-8 | ||
|
||
# Install test packages | ||
python -m pip install -r test-requirements.txt | ||
|
||
# Build the project | ||
python setup.py build | ||
python setup.py build_ext --inplace |