Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit 6c94d8b

Browse files
authored
CI workflow update (#2)
* CI workflow update * Update setup.py/README.rst to match pyproject.toml/README.md
1 parent c7b30c4 commit 6c94d8b

File tree

3 files changed

+16
-29
lines changed

3 files changed

+16
-29
lines changed

.github/workflows/on-push.yml

+10-20
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ on:
55
branches:
66
- '**'
77
tags-ignore:
8-
- '**'
9-
paths-ignore: # Don't trigger on files that are updated by the CI
10-
- 'pyproject.toml' # Note changes to poetry.lock will still build
11-
- 'setup.py'
12-
- 'README.rst'
8+
- '*.*'
139

1410
jobs:
1511

@@ -19,61 +15,55 @@ jobs:
1915
- uses: actions/checkout@v1
2016
- name: Perform housekeeping checks
2117
env:
22-
GCLOUD_CONTAINER_AUTH: ${{ secrets.GCLOUD_CONTAINER_AUTH }}
2318
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2419
run: |
2520
source <(curl -sL http://ci.q-ctrl.com)
2621
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
27-
./ci docker run asia.gcr.io/q-ctrl-api-development/python-37 /scripts/housekeeping.sh
22+
./ci docker run qctrl/python-build:3.7 /scripts/housekeeping.sh
2823
2924
linting:
3025
runs-on: ubuntu-latest
3126
steps:
3227
- uses: actions/checkout@v1
3328
- name: Install Python dependencies
34-
env:
35-
GCLOUD_CONTAINER_AUTH: ${{ secrets.GCLOUD_CONTAINER_AUTH }}
3629
run: |
3730
source <(curl -sL http://ci.q-ctrl.com)
3831
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
39-
./ci docker run asia.gcr.io/q-ctrl-api-development/python-37 /scripts/install-python-dependencies.sh
32+
./ci docker run qctrl/python-build:3.7 /scripts/install-python-dependencies.sh
4033
- name: Run Pylint
4134
run: |
42-
./ci docker run asia.gcr.io/q-ctrl-api-development/python-37 poetry run pylint_runner || true
35+
./ci docker run qctrl/python-build:3.7 poetry run pylint_runner || true
4336
- name: Run Pylama
4437
run: |
45-
./ci docker run asia.gcr.io/q-ctrl-api-development/python-37 poetry run pylama || true
38+
./ci docker run qctrl/python-build:3.7 poetry run pylama || true
4639
- name: Run Markdownlint
4740
run: |
48-
./ci docker run asia.gcr.io/q-ctrl-api-development/python-37 mdl -- -ig . || true
41+
./ci docker run qctrl/python-build:3.7 mdl -- -ig . || true
4942
5043
pytest:
5144
runs-on: ubuntu-latest
5245
strategy:
5346
matrix:
54-
python: [36, 37]
47+
python: [3.6, 3.7]
5548
steps:
5649
- uses: actions/checkout@v1
5750
- name: Install Python dependencies
58-
env:
59-
GCLOUD_CONTAINER_AUTH: ${{ secrets.GCLOUD_CONTAINER_AUTH }}
6051
run: |
6152
source <(curl -sL http://ci.q-ctrl.com)
6253
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
63-
./ci docker run asia.gcr.io/q-ctrl-api-development/python-${{ matrix.python }} /scripts/install-python-dependencies.sh
54+
./ci docker run qctrl/python-build:${{ matrix.python }} /scripts/install-python-dependencies.sh
6455
- name: Run Pytest
6556
run: |
66-
./ci docker run asia.gcr.io/q-ctrl-api-development/python-${{ matrix.python }} /scripts/pytest.sh
57+
./ci docker run qctrl/python-build:${{ matrix.python }} /scripts/pytest.sh
6758
6859
publish_internally:
6960
runs-on: ubuntu-latest
7061
steps:
7162
- uses: actions/checkout@v1
7263
- name: Publish development version
7364
env:
74-
GCLOUD_CONTAINER_AUTH: ${{ secrets.GCLOUD_CONTAINER_AUTH }}
7565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7666
run: |
7767
source <(curl -sL http://ci.q-ctrl.com)
7868
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
79-
./ci docker run asia.gcr.io/q-ctrl-api-development/python-37 /scripts/publish-dev-version.sh
69+
./ci docker run qctrl/python-build:3.7 /scripts/publish-dev-version.sh

.github/workflows/on-release.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,17 @@ jobs:
1212
- uses: actions/checkout@v1
1313
- name: Update version in code
1414
env:
15-
GCLOUD_CONTAINER_AUTH: ${{ secrets.GCLOUD_CONTAINER_AUTH }}
1615
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1716
run: |
1817
source <(curl -sL http://ci.q-ctrl.com)
1918
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
20-
./ci docker run asia.gcr.io/q-ctrl-api-development/python-37 /scripts/housekeeping.sh
19+
./ci docker run qctrl/python-build:3.7 /scripts/housekeeping.sh
2120
- name: Publish publicly
2221
env:
23-
GCLOUD_CONTAINER_AUTH: ${{ secrets.GCLOUD_CONTAINER_AUTH }}
2422
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2523
run: |
2624
source <(curl -sL http://ci.q-ctrl.com)
27-
./ci docker run asia.gcr.io/q-ctrl-api-development/python-37 /scripts/publish-release-publicly.sh
25+
./ci docker run qctrl/python-build:3.7 /scripts/publish-release-publicly.sh
2826
- name: Publish internally
29-
env:
30-
GCLOUD_CONTAINER_AUTH: ${{ secrets.GCLOUD_CONTAINER_AUTH }}
3127
run: |
32-
./ci docker run asia.gcr.io/q-ctrl-api-development/python-37 /scripts/publish-release-internally.sh
28+
./ci docker run qctrl/python-build:3.7 /scripts/publish-release-internally.sh

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@
2727
version='0.0.1',
2828
description='Q-CTRL Pyquil Adapter',
2929
python_requires='<3.8,>=3.6.4',
30-
project_urls={'repository': 'https://github.com/qctrl/python-pyquil'},
30+
project_urls={"repository": "https://github.com/qctrl/python-pyquil"},
3131
author='Q-CTRL',
3232
author_email='[email protected]',
3333
license='Apache-2.0',
3434
keywords='quantum computing open source engineering pyquil',
3535
classifiers=['Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Education', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: Apache Software License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3.6', 'Topic :: Scientific/Engineering :: Physics', 'Topic :: Scientific/Engineering :: Visualization', 'Topic :: Software Development :: Embedded Systems', 'Topic :: System :: Distributed Computing'],
3636
packages=['qctrlpyquil'],
37+
package_dir={"": "."},
3738
package_data={},
3839
install_requires=['numpy==1.*,>=1.16.0', 'pyquil==2.*,>=2.9.0', 'qctrl-open-controls==3.*,>=3.0.0', 'scipy==1.*,>=1.3.0', 'toml==0.*,>=0.10.0'],
39-
extras_require={'dev': ['pylama', 'pylint', 'pylint-runner', 'pytest', 'sphinx==2.*,>=2.2.0']},
40+
extras_require={"dev": ["pylama", "pylint", "pylint-runner", "pytest", "sphinx==2.*,>=2.2.0"]},
4041
)

0 commit comments

Comments
 (0)