Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify unit testing. #2291

Merged
merged 19 commits into from
Oct 9, 2024
Merged
37 changes: 19 additions & 18 deletions .github/workflows/ci_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ jobs:
ref: ${{ github.event.after }} # for PR avoids checking out merge commit
fetch-depth: 0 # include all history

- name: intsall and run lint-po
- uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: install and run lint-po
run: |
pip install lint-po
pip3 install lint-po
lint-po ./galaxy_ng/locale/*/LC_MESSAGES/*.po

lint:
Expand Down Expand Up @@ -62,30 +66,27 @@ jobs:

- uses: actions/checkout@v4

- name: install ansible
run: pip3 install ansible

- 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: checkout dab
run: |
cd ..
git clone https://github.com/ansible/django-ansible-base

- 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: install system dependencies
run: |
sudo apt update
sudo apt install -y libsasl2-dev libldap2-dev libssl-dev gettext

- 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: install tox & coverage
run: pip3 install tox coverage

- name: copy coverage report
run: |
docker cp pulp:/tmp/galaxy_ng-test-results.xml coverage.xml
- name: run the unit tests
run: tox -e py311

- name: upload coverage as artifact
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.xml
path: /tmp/galaxy_ng-test-results.xml

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
Expand Down
5 changes: 4 additions & 1 deletion aap_compose_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,15 @@ services:

postgres:
image: "postgres:13"
ports:
- '5433:5432'
environment:
<<: *common-env
healthcheck:
test: ["CMD", "pg_isready", "-U", "galaxy_ng"]
interval: 10s
retries: 5
command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]

helper:
image: quay.io/centos/centos:stream9
Expand Down Expand Up @@ -230,4 +233,4 @@ volumes:

networks:
service-mesh:
name: service-mesh
name: service-mesh
12 changes: 0 additions & 12 deletions dev/playbooks/RUNALL.sh

This file was deleted.

34 changes: 0 additions & 34 deletions dev/playbooks/build_container.yaml

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions dev/playbooks/docker/BUILD.sh

This file was deleted.

12 changes: 0 additions & 12 deletions dev/playbooks/docker/packages.patch

This file was deleted.

Loading
Loading