Skip to content

👷‍♂️CI/CD includes build publishing #51

👷‍♂️CI/CD includes build publishing

👷‍♂️CI/CD includes build publishing #51

Workflow file for this run

name: Development
on:
push:
branches:
- "main"
pull_request:
branches:
- "**"
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.12"
- "3.8"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install tox
- name: Run unit tests
run: |
python -m tox -e test-unit -- -m "smoke or sanity"
integration-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.12", "3.8"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: python -m pip install tox
- name: Run integration tests
run: python -m tox -e test-integration -- -m smoke
publish:
if: github.event_name == 'pull_request' || github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Build & Publish the distribution
needs: [unit-tests, integration-tests, e2e-tests]

Check failure on line 52 in .github/workflows/development.yml

View workflow run for this annotation

GitHub Actions / Development

Invalid workflow file

The workflow is not valid. .github/workflows/development.yml (Line: 52, Col: 44): Job 'publish' depends on unknown job 'e2e-tests'.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Build and Publish Final Release
uses: neuralmagic/nm-actions/actions/publisher@main
with:
publish_pypi: false
publish_pypi_internal: true
timestamp: true
prefix: "-dev"