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

Update docker command for test runners #108

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
uses: actions/checkout@v3

- name: Build images
run: docker-compose build
run: docker compose build

- name: Run tests against latest
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: docker-compose run -e COVERALLS_REPO_TOKEN latest bash /opt/scripts/run-tests.sh -c ckanext.doi
run: docker compose run -e COVERALLS_REPO_TOKEN latest bash /opt/scripts/run-tests.sh -c ckanext.doi

test_next:
name: Run tests against ckantest next
Expand All @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@v3

- name: Build images
run: docker-compose build
run: docker compose build

- name: Run tests against next
run: docker-compose run -e COVERALLS_REPO_TOKEN next bash /opt/scripts/run-tests.sh -c ckanext.doi
run: docker compose run -e COVERALLS_REPO_TOKEN next bash /opt/scripts/run-tests.sh -c ckanext.doi
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,17 +219,17 @@ To run the tests can be run against ckan 2.9.x and 2.10.x on Python3:

1. Build the required images:
```shell
docker-compose build
docker compose build
```

2. Then run the tests.
The root of the repository is mounted into the ckan container as a volume by the Docker compose configuration, so you should only need to rebuild the ckan image if you change the extension's dependencies.
```shell
# run tests against ckan 2.9.x
docker-compose run latest
docker compose run latest

# run tests against ckan 2.10.x
docker-compose run next
docker compose run next
```

Note that the tests mock the DataCite API and therefore don't require an internet connection nor your DataCite credentials to run.
Expand Down
Loading