Skip to content

Commit c651562

Browse files
ci: Fix complex plugin installation
1 parent 89d1219 commit c651562

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/test-plugin-command.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ jobs:
7878
> [Starting test job...](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})
7979
> ...
8080
81-
- name: Create requirements.txt
82-
run: echo '${{ env.PIP_URL }}' > requirements.txt
83-
8481
- name: Set up Python
8582
id: setup-python
8683
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
@@ -92,13 +89,16 @@ jobs:
9289
with:
9390
version: ">=0.4.30"
9491

92+
- name: Create virtual environment
93+
run: |
94+
uv venv
95+
echo "VIRTUAL_ENV=${{ steps.setup-python.outputs.python-version }}" >> $GITHUB_ENV
96+
echo "PATH=${{ steps.setup-python.outputs.python-version }}:${{ github.env.PATH }}" >> $GITHUB_ENV
97+
9598
- name: Install plugin
9699
id: plugin-install
97-
env:
98-
MELTANO__PYTHON_VERSION: ${{ steps.setup-python.outputs.python-version }}
99100
run: |
100-
uv venv
101-
uv pip install -r requirements.txt 2>&1 | tee install-output.txt
101+
echo ${{ env.PIP_URL }} | xargs uv pip install 2> install-output.txt
102102
echo "failed=${PIPESTATUS[0]}" >> $GITHUB_ENV
103103
104104
- name: Create installation failure log

0 commit comments

Comments
 (0)