Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create test_pypi_prerelease.yml #261

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/test_pypi_prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Test the PyPi pre-release install weekly

on:
# schedule:
# - cron: "0 0 * * 1,3,5" #“At 00:00 on Monday, Wednesday, and Friday.” https://crontab.guru/#0_0_*_*_1,3,5
workflow_dispatch:

jobs:
test_pypi:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ['3.8', '3.9', '3.10', '3.11']
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}

# Define job steps
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Check-out repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install OpenQAOA-Core release candidate
run: |
pip install --pre openqaoa-core
python -c 'from openqaoa._version import __version__; print(__version__)'


- name: Install OpenQAOA-Qiskit release candidate
run: |
pip install --pre openqaoa-qiskit
python -c 'from openqaoa._version import __version__; print(__version__)'


- name: Install OpenQAOA-Pyquil release candidate
run: |
pip install --pre openqaoa-pyquil
python -c 'from openqaoa._version import __version__; print(__version__)'


- name: Install OpenQAOA-Braket release candidate
run: |
pip install --pre openqaoa-braket
python -c 'from openqaoa._version import __version__; print(__version__)'


- name: Install OpenQAOA-Azure release candidate
run: |
pip install --pre openqaoa-azure
python -c 'from openqaoa._version import __version__; print(__version__)'

- name: Install OpenQAOA (Full) release candidate
run: |
pip install --pre openqaoa
python -c 'from openqaoa._version import __version__; print(__version__)'