-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
8 changed files
with
52 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,24 +16,24 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
python-version: [3.7, 3.8, 3.9] | ||
python-version: ["3.8", "3.9", "3.10"] | ||
exclude: | ||
- os: windows-latest | ||
python-version: 3.8 | ||
python-version: "3.9" | ||
- os: windows-latest | ||
python-version: 3.9 | ||
python-version: "3.10" | ||
env: | ||
DISPLAY: ':99.0' | ||
OS: ${{ matrix.os }} | ||
UPLOAD_TO_GHPAGES: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7' && github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||
steps: | ||
- uses: actions/checkout@v3.0.2 | ||
- uses: actions/checkout@v3.1.0 | ||
with: | ||
fetch-depth: '0' | ||
# if we upload to ghpages we need the full | ||
# history to generate correct version info | ||
if: ${{ fromJSON(env.UPLOAD_TO_GHPAGES) }} | ||
- uses: actions/checkout@v3.0.2 | ||
- uses: actions/checkout@v3.1.0 | ||
if: ${{ !fromJSON(env.UPLOAD_TO_GHPAGES) }} | ||
- name: setup ubuntu-latest xvfb | ||
uses: ./.github/actions/setup-ubuntu-latest-xvfb | ||
|
@@ -47,14 +47,14 @@ jobs: | |
args: install pandoc | ||
if: runner.os == 'Windows' | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4.2.0 | ||
uses: actions/setup-python@v4.3.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: prepare pip cache | ||
id: prepare-cache-pip | ||
uses: ./.github/actions/prepare-cache-pip | ||
- name: pip cache | ||
uses: actions/[email protected].8 | ||
uses: actions/[email protected].11 | ||
with: | ||
path: ${{ steps.prepare-cache-pip.outputs.cache-dir }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/setup.cfg') }} | ||
|
@@ -80,7 +80,7 @@ jobs: | |
name: docs_${{ matrix.python-version }}_${{ matrix.os }} | ||
path: ${{ github.workspace }}/docs/_build/html | ||
- name: Deploy to gh pages | ||
uses: JamesIves/[email protected].0 | ||
uses: JamesIves/[email protected].1 | ||
with: | ||
branch: gh-pages | ||
folder: ${{ github.workspace }}/docs/_build/html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,33 +18,33 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
python-version: [3.7, 3.8, 3.9] | ||
python-version: ["3.8", "3.9", "3.10"] | ||
exclude: | ||
- os: windows-latest | ||
python-version: 3.8 | ||
python-version: "3.9" | ||
- os: windows-latest | ||
python-version: 3.9 | ||
python-version: "3.10" | ||
env: | ||
DISPLAY: ':99.0' | ||
OS: ${{ matrix.os }} | ||
PYTHON: ${{ matrix.python-version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3.0.2 | ||
- uses: actions/checkout@v3.1.0 | ||
with: | ||
submodules: true | ||
- name: setup ubuntu-latest xvfb | ||
uses: ./.github/actions/setup-ubuntu-latest-xvfb | ||
if: runner.os == 'Linux' | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4.2.0 | ||
uses: actions/setup-python@v4.3.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: prepare pip cache | ||
id: prepare-cache-pip | ||
uses: ./.github/actions/prepare-cache-pip | ||
- name: pip cache | ||
uses: actions/[email protected].8 | ||
uses: actions/[email protected].11 | ||
with: | ||
path: ${{ steps.prepare-cache-pip.outputs.cache-dir }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/setup.cfg') }} | ||
|
@@ -55,12 +55,11 @@ jobs: | |
pip install .[test] -c requirements.txt | ||
- name: Run Mypy | ||
run: mypy qcodes_contrib_drivers | ||
if: matrix.python-version != '3.7' | ||
- name: Run tests | ||
run: | | ||
pytest --cov=qcodes_contrib_drivers --cov-report xml --cov-config=setup.cfg qcodes_contrib_drivers | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected].0 | ||
uses: codecov/[email protected].1 | ||
with: | ||
file: ./coverage.xml | ||
env_vars: OS,PYTHON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
mypy==0.971 | ||
mypy==0.982 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters