Skip to content

Commit

Permalink
use tox instead of playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
jctanner committed Oct 8, 2024
1 parent 170dde4 commit b0b46b4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/ci_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,11 @@ jobs:

- uses: actions/checkout@v4

- name: install ansible
run: pip3 install ansible
- name: install tox
run: pip3 install tox

- name: install python-requests
run: pip3 install requests

- name: run the build container playbook
run: cd dev/playbooks; ANSIBLE_STDOUT_CALLBACK=yaml ansible-playbook -i 'localhost,' --forks=1 -v build_container.yaml

- name: run the start container playbook
run: cd dev/playbooks; ANSIBLE_STDOUT_CALLBACK=yaml ansible-playbook -i 'localhost,' --forks=1 -v start_container.yaml

- name: run the unit test playbook
run: cd dev/playbooks; ANSIBLE_STDOUT_CALLBACK=yaml ansible-playbook -i 'localhost,' --forks=1 -v run_unit_tests.yaml
- name: run the unit tests
run: tox -e py311

- name: upload jUnit XML test results
if: github.event_name == 'push' && github.repository == 'ansible/galaxy_ng' && github.ref_name == 'master'
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ legacy_tox_ini = """
--capture=no -v \
-p 'no:pulpcore' \
-p 'no:pulp_ansible' \
--cov-report term-missing:skip-covered \
--cov=galaxy_ng \
--junit-xml=/tmp/galaxy_ng-test-results.xml \
--pyargs "galaxy_ng.tests.unit" \
'
"""
1 change: 1 addition & 0 deletions unittest_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ mock
orionutils
pytest-django
pytest<8
pytest-coverage

0 comments on commit b0b46b4

Please sign in to comment.