Skip to content

Commit

Permalink
feat: Add httpbin_url input to python unit tests workflow (#154)
Browse files Browse the repository at this point in the history
* Add httpbin_url input to python unit tests workflow

* Do not fail fast

* Fix

* Actually fix

* Use secrets instead of inputs
  • Loading branch information
janbuchar authored Nov 15, 2024
1 parent ac061b7 commit a841601
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/python_unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@ name: Unit tests

on:
workflow_call:
secrets:
httpbin_url:
required: false
description: Used to set the HTTPBIN_URL environment variable

jobs:
unit_tests:
name: Unit tests
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] # All supported Python versions.
runs-on: ${{ matrix.os }}
env:
HTTPBIN_URL: ${{ secrets.httpbin_url || 'https://httpbin.org' }}

steps:
- name: Checkout repository
Expand Down

0 comments on commit a841601

Please sign in to comment.