summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorRick Elrod <rick@elrod.me>2022-12-21 00:40:08 +0100
committerRick Elrod <rick@elrod.me>2022-12-21 04:40:41 +0100
commitd968b648deaff425dfa755df297b0ae52dfa2992 (patch)
tree34ee99f5396db6458211c8249797d214ed9cfc26 /.github/workflows
parentMerge pull request #13352 from AlanCoding/dont_pass_subtasks (diff)
downloadawx-d968b648deaff425dfa755df297b0ae52dfa2992.tar.xz
awx-d968b648deaff425dfa755df297b0ae52dfa2992.zip
Run sanity tests outside of our container
Also just ignore one sanity test for the export module, instead of ignoring all of them. Also use latest ansible-test, and make it work on GHA (by using podman instead of docker). Signed-off-by: Rick Elrod <rick@elrod.me>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml21
-rw-r--r--.github/workflows/e2e_test.yml4
2 files changed, 19 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5e9a72392f..97df2050cd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,9 +28,6 @@ jobs:
- name: awx-collection
command: /start_tests.sh test_collection_all
label: Run Collection Tests
- - name: awx-collection-sanity
- command: /start_tests.sh test_collection_sanity
- label: Run Ansible core Collection Sanity tests
- name: api-schema
label: Check API Schema
command: /start_tests.sh detect-schema-change SCHEMA_DIFF_BASE_BRANCH=${{ github.event.pull_request.base.ref }}
@@ -148,3 +145,21 @@ jobs:
env:
AWX_TEST_IMAGE: awx
AWX_TEST_VERSION: ci
+
+ collection-sanity:
+ name: awx_collection sanity
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Upgrade ansible-core
+ run: python3 -m pip install --upgrade ansible-core
+
+ - name: Run sanity tests
+ run: make test_collection_sanity
+ env:
+ # needed due to cgroupsv2. This is fixed, but a stable release
+ # with the fix has not been made yet.
+ ANSIBLE_TEST_PREFER_PODMAN: 1
diff --git a/.github/workflows/e2e_test.yml b/.github/workflows/e2e_test.yml
index 22890fcf53..788042baed 100644
--- a/.github/workflows/e2e_test.yml
+++ b/.github/workflows/e2e_test.yml
@@ -6,7 +6,7 @@ env:
on:
pull_request_target:
types: [labeled]
-jobs:
+jobs:
e2e-test:
if: contains(github.event.pull_request.labels.*.name, 'qe:e2e')
runs-on: ubuntu-latest
@@ -107,5 +107,3 @@ jobs:
with:
name: AWX-logs-${{ matrix.job }}
path: make-docker-compose-output.log
-
-