Skip to content

Build and Test Python Wheel #3

Build and Test Python Wheel

Build and Test Python Wheel #3

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Install and Test Wheel

Invalid workflow file

The workflow is not valid. .github/workflows/test-wheel.yml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
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