Build and Test Python Wheel #3
Workflow file for this run
This file contains 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: Install and Test Wheel | ||
on: | ||
push: | ||
tags: | ||
- 'v*' # Triggers the workflow for version tags. | ||
jobs: | ||
test-wheel: | ||
Check failure on line 9 in .github/workflows/test-wheel.yml GitHub Actions / Install and Test WheelInvalid workflow file
|
||
needs: build-wheel | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Extract Version Tag | ||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: nemoguardrails-${{ env.VERSION }}.whl | ||
- name: Install Wheel | ||
run: | | ||
pip install nemoguardrails-${{ env.VERSION }}-*.whl | ||
pip install nemoguardrails-${{ env.VERSION }}-*.whl[dev] | ||
- name: Test with pytest | ||
run: | | ||
pytest |