Repository navigation
Reproduce setup-python pip-install issue #31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Reproduce setup-python pip-install issue | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| reproduce: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python with pip-install | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.12 | |
| pip-install: dotenv | |
| - name: Verify Python and pip | |
| run: | | |
| python --version | |
| pip --version | |
| which python | |
| which pip | |
| - name: Show installed packages | |
| run: | | |
| pip list | |
| - name: Create test script | |
| shell: bash | |
| run: | | |
| cat <<'EOF' > test.py | |
| from dotenv import find_dotenv, load_dotenv, set_key, get_key | |
| print("dotenv import succeeded") | |
| EOF | |
| - name: Run test script | |
| run: | | |
| python test.py |