Skip to content

Commit

Permalink
Alternative approach
Browse files Browse the repository at this point in the history
  • Loading branch information
janbuchar committed Jun 3, 2024
1 parent 453b91a commit 7dea9cb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/_unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@ jobs:
python-version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}

services:
httpbin:
image: kennethreitz/httpbin
ports:
- 80:80
env:
HTTPBIN_URL: http://httpbin/
HTTPBIN_URL: http://127.0.0.1:8080/

steps:
# We need to check out the head commit in case of PRs, and the default ref otherwise (during release).
Expand All @@ -27,6 +22,12 @@ jobs:
with:
ref: "${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || '' }}"

- name: Run a httpbin in the background
uses: addnab/docker-run-action@v3
with:
image: kennethreitz/httpbin
options: -d -p 8080:80

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 7dea9cb

Please sign in to comment.