Skip to content

Commit

Permalink
Fixup: convert to CI image
Browse files Browse the repository at this point in the history
  • Loading branch information
hmstepanek committed Jul 17, 2023
1 parent 9a953f7 commit 4c4bcb5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,13 +395,17 @@ jobs:
group-number: [1]

runs-on: ubuntu-20.04
container:
image: ghcr.io/newrelic/newrelic-python-agent-ci:latest
options: >-
--add-host=host.docker.internal:host-gateway
timeout-minutes: 30

services:
redis:
image: redis
ports:
- 8090:7000
- 7000:7000
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
Expand All @@ -411,7 +415,11 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-python-matrix

- name: Fetch git tags
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git fetch --tags origin
# Start the redis cluser (See https://redis.io/docs/management/scaling/#create-a-redis-cluster)
- name: Start the redis cluster
Expand All @@ -436,7 +444,7 @@ jobs:
- name: Get Environments
id: get-envs
run: |
echo "::set-output name=envs::$(tox -l | grep "^${{ github.job }}\-" | ./.github/workflows/get-envs.py)"
echo "envs=$(tox -l | grep '^${{ github.job }}\-' | ./.github/workflows/get-envs.py)" >> $GITHUB_OUTPUT
env:
GROUP_NUMBER: ${{ matrix.group-number }}

Expand Down

0 comments on commit 4c4bcb5

Please sign in to comment.