Skip to content

Commit

Permalink
[QOLSVC-8504] replace obsolete test container
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrawnCA committed Dec 9, 2024
1 parent 4b3f14d commit d289e12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install requirements
Expand All @@ -30,12 +30,16 @@ jobs:

name: Test on CKAN ${{ matrix.ckan-version }}
runs-on: ubuntu-latest
container: drevops/ci-builder:23.7.0
container: drevops/ci-runner:23.12.0
env:
CKAN_VERSION: ${{ matrix.ckan-version }}

steps:
- uses: actions/checkout@v3
# Patch https://github.com/actions/runner/issues/863
- name: Preserve $HOME set in the container
run: echo HOME=/root >> "$GITHUB_ENV"

- uses: actions/checkout@v4
timeout-minutes: 2

- name: Build
Expand All @@ -57,7 +61,7 @@ jobs:
- name: Retrieve logs
if: always()
run: bin/get-logs.sh
timeout-minutes: 5
timeout-minutes: 1

- name: Retrieve screenshots
if: failure()
Expand All @@ -66,7 +70,7 @@ jobs:

- name: Upload screenshots
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: CKAN ${{ matrix.ckan-version }} screenshots
path: /tmp/artifacts/behave/screenshots
Expand Down
2 changes: 1 addition & 1 deletion test/features/steps/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def fill_in_default_link_resource_fields(context):
@when(u'I upload "{file_name}" of type "{file_format}" to resource')
def upload_file_to_resource(context, file_name, file_format):
context.execute_steps(u"""
When I execute the script "$('#resource-upload-button').trigger(click);"
When I execute the script "$('#resource-upload-button').trigger('click');"
And I attach the file "{file_name}" to "upload"
# Don't quote the injected string since it can have trailing spaces
And I execute the script "document.getElementById('field-format').value='{file_format}'"
Expand Down

0 comments on commit d289e12

Please sign in to comment.