GH Actions #208
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
name: GH Actions | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
egg_task_fedora_37: | |
name: Egg task fedora:37 | |
runs-on: ubuntu-20.04 | |
container: | |
image: fedora:37 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Test running avocado from eggs | |
run: | | |
dnf -y install python3 python3-setuptools | |
python3 setup.py bdist_egg | |
mv dist/avocado_framework-*egg /tmp | |
python3 setup.py clean --all | |
python3 -c 'import sys; import glob; sys.path.insert(0, glob.glob("/tmp/avocado_framework-*.egg")[0]); from avocado.core.main import main; sys.exit(main())' run /bin/true | |
cd /tmp | |
python3 -c 'import sys; from pkg_resources import require; require("avocado-framework"); from avocado.core.main import main; sys.exit(main())' run /bin/true | |
egg_task_fedora_38: | |
name: Egg task fedora:38 | |
runs-on: ubuntu-20.04 | |
container: | |
image: fedora:38 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Test running avocado from eggs | |
run: | | |
dnf -y install python3-setuptools | |
python3 setup.py bdist_egg | |
mv dist/avocado_framework-*egg /tmp | |
python3 setup.py clean --all | |
python3 -c 'import sys; import glob; sys.path.insert(0, glob.glob("/tmp/avocado_framework-*.egg")[0]); from avocado.core.main import main; sys.exit(main())' run /bin/true | |
cd /tmp | |
python3 -c 'import sys; from pkg_resources import require; require("avocado-framework"); from avocado.core.main import main; sys.exit(main())' run /bin/true | |
egg_task_ubi_8: | |
name: Egg task ubi:8.8 | |
runs-on: ubuntu-20.04 | |
container: | |
image: registry.access.redhat.com/ubi8/ubi:ubi:8.8 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Test running avocado from eggs | |
run: | | |
dnf -y install python38 python38-setuptools | |
python3 setup.py bdist_egg | |
mv dist/avocado_framework-*egg /tmp | |
python3 setup.py clean --all | |
python3 -c 'import sys; import glob; sys.path.insert(0, glob.glob("/tmp/avocado_framework-*.egg")[0]); from avocado.core.main import main; sys.exit(main())' run /bin/true | |
cd /tmp | |
python3 -c 'import sys; from pkg_resources import require; require("avocado-framework"); from avocado.core.main import main; sys.exit(main())' run /bin/true | |
egg_task_ubi_9: | |
name: Egg task ubi:9.2 | |
runs-on: ubuntu-20.04 | |
container: | |
image: registry.access.redhat.com/ubi8/ubi:ubi:9.2 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Test running avocado from eggs | |
run: | | |
python3 setup.py bdist_egg | |
mv dist/avocado_framework-*egg /tmp | |
python3 setup.py clean --all | |
python3 -c 'import sys; import glob; sys.path.insert(0, glob.glob("/tmp/avocado_framework-*.egg")[0]); from avocado.core.main import main; sys.exit(main())' run /bin/true | |
cd /tmp | |
python3 -c 'import sys; from pkg_resources import require; require("avocado-framework"); from avocado.core.main import main; sys.exit(main())' run /bin/true |