Skip to content

Commit edef389

Browse files
authored
Merge branch 'QCoDeS:master' into master
2 parents e256f3e + d9e11d0 commit edef389

304 files changed

Lines changed: 52230 additions & 14532 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
1-
If you encounter a bug use the following template.
2-
If you have a feature request feel free to freestyle.
1+
If you encounter a bug, use the following template.
2+
If you have a feature request feel free to freestyle or use ideas section in the discussions
3+
[here](https://github.com/QCoDeS/Qcodes/discussions).
4+
If you have a question or general opinion, open your query on a relevant discussion section.
5+
6+
Bug report template:
7+
8+
###
9+
A good title and description
10+
311
### Steps to reproduce
412
1.
513
2.
614
3.
715

816
### Expected behaviour
9-
Tell us what should happen
17+
What did you expect to happen?
1018

1119
### Actual behaviour
12-
Tell us what happens instead
20+
What did happen instead?
1321

1422
### System
23+
It would be helpful to provide such information:
24+
1525
**operating system**
1626

17-
**qcodes branch**
27+
If you are using a released version of qcodes (recommended):
28+
**qcodes version**
1829

30+
If you are using the development version of qcodes:
31+
**qcodes branch**
1932
**qcodes commit**

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
1-
Fixes #issuenumber.
1+
<!--
22
3-
Changes proposed in this pull request:
4-
-
5-
-
6-
-
3+
Thanks for submitting a pull request against QCoDeS.
74
5+
To help us effectively merge your pr please consider the following check list.
86
9-
@mention one core developer
7+
- [ ] Make sure that the pull request contains a short description of the changes made.
8+
- [ ] If you are submitting a new feature please document it. This can be in the form of inline
9+
docstrings, an example notebook or restructured text files.
10+
- [ ] Please include automatic tests for the changes made when possible.
11+
12+
Unless your change is a small or trivial fix please add a small changelog entry:
13+
14+
- [ ] Create a file in the docs\changes\newsfragments folder with a short description of the change.
15+
16+
This file should be in the format number.categoryofcontribution. Here the number should either be the number
17+
of the pull request. To get the number of the pull request one must
18+
first the pull request and then subsequently update the number. The category of contribution should be
19+
one of ``breaking``, ``new``, ``improved``, ``new_driver`` ``improved_driver``, ``underthehood``.
20+
21+
If this fixes a known bug reported against QCoDeS:
22+
23+
- [ ] Please include a string in the following form ``closes #xxx`` where ``xxx``` is the number of the bug fixed.
24+
25+
Please have a look at [the contributing guide](https://qcodes.github.io/Qcodes/community/contributing.html)
26+
for more information.
27+
28+
If you are in doubt about any of this please ask and we will be happy to help.
29+
30+
-->

.github/actions/prepare-cache-pip/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ runs:
88
using: "composite"
99
steps:
1010
- name: upgrade pip setuptools wheel
11-
run: pip install --upgrade pip setuptools wheel
11+
run: python -m pip install --upgrade pip setuptools wheel
1212
shell: bash
1313
- name: Get pip cache dir
1414
id: get-pip-cache-dir

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ updates:
55
schedule:
66
interval: daily
77
open-pull-requests-limit: 10
8+
rebase-strategy: "disabled"
89
- package-ecosystem: github-actions
910
directory: "/"
11+
rebase-strategy: "disabled"
1012
schedule:
1113
interval: "daily"

.github/static/environment_forge_full.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ dependencies:
66
# recommended to be explicitly specified by conda-incubator/setup-miniconda@v2
77
- pip
88
# dependencies for setup.cfg
9-
- numpy>=1.15
9+
- numpy>=1.17
1010
- pyvisa>=1.11.0, <1.12.0
1111
- h5py>=2.8.0
1212
- websockets>=7.0
1313
- jsonschema>=3.0.0
1414
- ruamel.yaml>=0.16.0,!=0.16.6
1515
- wrapt>=1.10.4
16-
- pandas>=0.25.0
17-
- xarray>=0.16.2
18-
- netCDF4>=1.5.0.1
16+
- pandas>=1.0.0
17+
- xarray>=0.18.0
18+
- h5netcdf>=0.8.0
1919
- tabulate>=0.8.0
2020
- tqdm>=4.20.0
21-
- opencensus>=0.7.10, <0.8.0
21+
- opencensus>=0.7.10, <0.9.0
2222
- opencensus-ext-azure>=1.0.4, <2.0.0
2323
- matplotlib>=2.2.3
2424
- requirements-parser>=0.2.0
@@ -27,6 +27,7 @@ dependencies:
2727
- packaging>=20.0
2828
- ipywidgets>=7.5.0
2929
- broadbean>=0.9.1
30+
- uncertainties>=3.0.2
3031
# test requirements from setup.cfg
3132
- deepdiff>=5.0.2
3233
- hypothesis>=5.49.0
@@ -35,10 +36,15 @@ dependencies:
3536
- pytest-xdist>=2.0.0
3637
- pytest-mock>=3.0.0
3738
- lxml>=4.3.0
39+
- sphinx
3840
# extra relevant requirements from setup.cfg
3941
- pyqtgraph>=0.11.0
4042
# for running mypy type checking
4143
- mypy
4244
- mypy_extensions
4345
- pip:
4446
- pyvisa-sim>=0.4.0 # required for testing
47+
- versioningit>=0.3.0
48+
- types-pkg_resources
49+
- types_requests
50+
- types-tabulate
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Cancel old jobs
2+
on:
3+
workflow_run:
4+
workflows: ["build docs", "Run mypy and pytest", "Run pytest with minimum requirements", "run qcodes.pytest()", "Install all deps from conda-forge and run pytest"]
5+
types:
6+
- requested
7+
jobs:
8+
cancel:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: styfle/cancel-workflow-action@0.9.1
12+
with:
13+
all_but_latest: true
14+
workflow_id: ${{ github.event.workflow.id }}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "CodeQL"
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '42 15 * * 0'
7+
8+
jobs:
9+
analyze:
10+
name: Analyze
11+
runs-on: ubuntu-latest
12+
permissions:
13+
actions: read
14+
contents: read
15+
security-events: write
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
language: [ 'python' ]
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v2
25+
26+
# Initializes the CodeQL tools for scanning.
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v1
29+
with:
30+
languages: ${{ matrix.language }}
31+
32+
- name: Autobuild
33+
uses: github/codeql-action/autobuild@v1
34+
35+
- name: Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@v1

.github/workflows/conda-forge-install-and-test.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
branches:
66
- 'master'
77
- 'release/*'
8+
- 'staging'
9+
- 'trying'
810
tags:
911
- 'v*'
1012
pull_request:
1113

1214
jobs:
13-
build:
15+
pytestconda:
1416

1517
runs-on: ${{ matrix.os }}
1618
strategy:
@@ -22,14 +24,14 @@ jobs:
2224

2325
steps:
2426
- name: checkout source code
25-
uses: actions/checkout@v2
27+
uses: actions/checkout@v2.3.4
2628
with:
2729
submodules: true
2830
- name: setup ubuntu-latest xvfb
2931
uses: ./.github/actions/setup-ubuntu-latest-xvfb
3032
if: runner.os == 'Linux'
3133
- name: install dependencies
32-
uses: conda-incubator/setup-miniconda@v2
34+
uses: conda-incubator/setup-miniconda@v2.1.1
3335
with:
3436
activate-environment: qcodesforge
3537
environment-file: .github/static/environment_forge_full.yml

.github/workflows/docs.yaml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,39 @@ on:
55
branches:
66
- 'master'
77
- 'release/*'
8+
- 'staging'
9+
- 'trying'
810
tags:
911
- 'v*'
1012
pull_request:
1113

1214
jobs:
13-
build:
15+
builddocs:
1416

1517
runs-on: ${{ matrix.os }}
1618
strategy:
1719
matrix:
1820
os: [ubuntu-latest, windows-latest]
19-
python-version: [3.7, 3.8, 3.9]
21+
python-version: [3.7, 3.9, "3.10"]
2022
exclude:
21-
- os: windows-latest
22-
python-version: 3.8
2323
- os: windows-latest
2424
python-version: 3.9
25+
- os: windows-latest
26+
python-version: 3.10
27+
- os: ubuntu-latest
28+
python-version: 3.7
2529
env:
2630
DISPLAY: ':99.0'
2731
OS: ${{ matrix.os }}
28-
UPLOAD_TO_GHPAGES: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}
32+
UPLOAD_TO_GHPAGES: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}
2933
steps:
30-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v2.3.4
3135
with:
3236
fetch-depth: '0'
3337
# if we upload to ghpages we need the full
3438
# history to generate correct version info
3539
if: ${{ fromJSON(env.UPLOAD_TO_GHPAGES) }}
36-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v2.3.4
3741
if: ${{ !fromJSON(env.UPLOAD_TO_GHPAGES) }}
3842
- name: setup ubuntu-latest xvfb
3943
uses: ./.github/actions/setup-ubuntu-latest-xvfb
@@ -42,19 +46,23 @@ jobs:
4246
run: sudo apt install pandoc
4347
if: runner.os == 'Linux'
4448
- name: Install pandoc on windows
45-
uses: crazy-max/ghaction-chocolatey@v1.4.0
49+
uses: Wandalen/wretry.action@v1.0.12
4650
with:
47-
args: install pandoc
51+
action: crazy-max/ghaction-chocolatey@v1.6.0
52+
with: |
53+
args: install pandoc
54+
attempt_limit: 5
55+
attempt_delay: 1000
4856
if: runner.os == 'Windows'
4957
- name: Set up Python ${{ matrix.python-version }}
50-
uses: actions/setup-python@v2
58+
uses: actions/setup-python@v2.3.1
5159
with:
5260
python-version: ${{ matrix.python-version }}
5361
- name: prepare pip cache
5462
id: prepare-cache-pip
5563
uses: ./.github/actions/prepare-cache-pip
5664
- name: pip cache
57-
uses: actions/cache@v2.1.4
65+
uses: actions/cache@v2.1.7
5866
with:
5967
path: ${{ steps.prepare-cache-pip.outputs.cache-dir }}
6068
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/docs_requirements.txt') }}-${{ hashFiles('**/setup.cfg') }}
@@ -82,16 +90,17 @@ jobs:
8290
./make.bat html
8391
if: runner.os == 'Windows'
8492
- name: Upload build docs
85-
uses: actions/upload-artifact@v2
93+
uses: actions/upload-artifact@v2.3.1
8694
with:
8795
name: docs_${{ matrix.python-version }}_${{ matrix.os }}
8896
path: ${{ github.workspace }}/docs/_build/html
8997
- name: Deploy to gh pages
90-
uses: JamesIves/github-pages-deploy-action@4.1.0
98+
uses: JamesIves/github-pages-deploy-action@v4.2.2
9199
with:
92100
branch: gh-pages
93101
folder: ${{ github.workspace }}/docs/_build/html
94102
clean: true
103+
single-commit: true
95104
git-config-email: "bot"
96105
git-config-name: "Documentation Bot"
97106
if: ${{ fromJSON(env.UPLOAD_TO_GHPAGES) }}

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)