Skip to content

Commit

Permalink
ci: aap-16400 - run e2e tests for the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Izquierdo committed Sep 26, 2023
1 parent d9635c6 commit 93e80e6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,25 @@ env:
QUAY_USER: ansible+eda_gha

jobs:
build-and-test-image:
if: github.repository == 'ansible/ansible-rulebook'
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Build local image
run: docker build -t localhost/ansible-rulebook:test .

- name: Run tests
run: >
docker run --rm -u 0 localhost/ansible-rulebook:test bash -c '
pip install -r requirements_test.txt &&
pytest -m "e2e" -n auto'
build-and-push-image:
if: github.repository == 'ansible/ansible-rulebook'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit 93e80e6

Please sign in to comment.