Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
53c6938
Migrate all CI to Github Actions
mtreinish Aug 12, 2020
c4e0743
Fix release workflow
mtreinish Aug 12, 2020
68ef0bd
Tweak trigger
mtreinish Aug 12, 2020
d939d1b
Get all history for docs job
mtreinish Aug 12, 2020
2685b92
Install cvxopt in windows jobs
mtreinish Aug 12, 2020
ace0375
Use bash on windows
mtreinish Aug 12, 2020
fe3a3ca
Use conda for windows CI
mtreinish Aug 12, 2020
3bddb06
Upgrade setuptools and friend too
mtreinish Aug 12, 2020
b3c2e6d
Fix duplication
mtreinish Aug 12, 2020
ab1b00d
Use conda forge
mtreinish Aug 12, 2020
64830a7
Try conda installing scs too
mtreinish Aug 24, 2020
da35859
Only conda on windows 3.8
mtreinish Aug 24, 2020
19a7838
Fix typo
mtreinish Aug 24, 2020
d929b40
Actually install tox
mtreinish Aug 24, 2020
6df70b2
Upgrade setuptools on windows non-conda job
mtreinish Aug 24, 2020
bedec6a
Install cvxopt in tox venv on windows
mtreinish Aug 24, 2020
4ffb277
Fix more typos
mtreinish Aug 24, 2020
f4f0884
Fix / for bash
mtreinish Aug 24, 2020
1bad717
Merge remote-tracking branch 'origin/master' into migrate-to-gha
mtreinish Sep 1, 2020
1a35e09
Just use conda for all windows jobs
mtreinish Sep 1, 2020
134bc49
Drop 3.5 jobs
mtreinish Sep 1, 2020
f266e59
Auto update conda
mtreinish Sep 1, 2020
350b4f8
Test release job too
mtreinish Sep 1, 2020
692c095
Try adding 3.5 jobs back now that there is a working pattern
mtreinish Sep 1, 2020
2f5b60c
Remove windows 3.5 job
mtreinish Sep 1, 2020
44c37a1
Fix syntax error in release job
mtreinish Sep 1, 2020
8816347
Tweak release artifact build step
mtreinish Sep 1, 2020
71c7448
Ensure wheel is up to date for release job
mtreinish Sep 1, 2020
7ce8add
Upload release artifacts before twine push
mtreinish Sep 1, 2020
fe6a6ac
Only run wheel jobs on tags
mtreinish Sep 1, 2020
b999bf1
Disable parallelism for macOS 3.8 job
mtreinish Sep 1, 2020
81cfbf2
Disable parallelism in macOS CI
mtreinish Sep 1, 2020
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
82 changes: 82 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Tests
on:
push:
branches: [ master, 'stable/*' ]
pull_request:
branches: [ master, 'stable/*' ]
jobs:
tests:
name: tests-python${{ matrix.python-version }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
os: ["macOS-latest", "ubuntu-latest"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Deps
run: python -m pip install -U tox setuptools virtualenv wheel
- name: Install and Run Tests
run: tox -e py
if: runner.os != 'macOS'
- name: Install and Run Tests
env:
QISKIT_IN_PARALLEL: TRUE
run: tox -e py
if: runner.os == 'macOS'
windows-tests:
name: tests-python${{ matrix.python-version }}-windows
runs-on: windows-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- uses: goanpeca/setup-miniconda@v1
with:
activate-environment: ignis
auto-update-conda: true
channels: conda-forge
python-version: ${{ matrix.python-version }}
- name: Install cvxopt
run: conda install tox cvxopt -y
shell: pwsh
- name: Install and Run Tests
run: tox --sitepackages -epy
shell: bash -l {0}
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Deps
run: python -m pip install -U tox
- name: Run lint
run: tox -elint
docs:
name: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Deps
run: python -m pip install -U tox
- name: Build Docs
run: tox -edocs
- uses: actions/upload-artifact@v2
with:
name: html_docs
path: docs/_build/html
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release Artifacts
on:
push:
tags:
- '*'
jobs:
wheel-build:
name: Build and Publish Release Artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'
- name: Install Deps
run: pip install -U twine wheel
- name: Build Artifacts
run: |
python setup.py sdist
python setup.py bdist_wheel
shell: bash
- uses: actions/upload-artifact@v2
with:
path: ./dist/qiskit*
- name: Publish to PyPi
env:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
TWINE_USERNAME: qiskit
run: twine upload dist/qiskit*
127 changes: 0 additions & 127 deletions .travis.yml

This file was deleted.

82 changes: 0 additions & 82 deletions azure-pipelines.yml

This file was deleted.

1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ deps = numpy>=1.13
Cython>=0.27.1
setuptools>=40.1.0
cvxpy>=1.0.15
passenv = QISKIT_IN_PARALLEL
commands =
pip install -U -c constraints.txt git+https://github.com/Qiskit/qiskit-terra.git
pip install -U -c constraints.txt -r{toxinidir}/requirements-dev.txt
Expand Down