Skip to content

Bump qbraid from 0.5.0.dev20231115163402 to 0.5.0.dev20231117221343 #6

Bump qbraid from 0.5.0.dev20231115163402 to 0.5.0.dev20231117221343

Bump qbraid from 0.5.0.dev20231115163402 to 0.5.0.dev20231117221343 #6

Workflow file for this run

name: CI
on:
pull_request:
branches: ['main']
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Upgrade pip and install build tools
run: |
python -m pip install --upgrade pip
pip install setuptools wheel build
- name: Build the package
run: |
python -m build
- name: Upload built package
uses: actions/upload-artifact@v3
with:
name: built-package
path: dist/*.whl
test:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Download built package
uses: actions/download-artifact@v3
with:
name: built-package
path: dist
- name: Install package
run: |
pip install dist/*.whl
- name: Install pytest
run: |
pip install pytest
- name: Run tests
run: |
pytest tests