-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4434 from jenshnielsen/pip_constraints
Replace pip requirements with constraints
- Loading branch information
Showing
8 changed files
with
140 additions
and
220 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 |
---|---|---|
|
@@ -65,18 +65,11 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.prepare-cache-pip.outputs.cache-dir }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/docs_requirements.txt') }}-${{ hashFiles('**/setup.cfg') }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/pyproject.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.python-version }}-pip- | ||
- name: install requirements.txt | ||
run: | | ||
pip install -r requirements.txt | ||
- name: install docs_requirements.txt | ||
run: | | ||
pip install -r docs_requirements.txt | ||
- name: install qcodes | ||
run: pip install . | ||
run: pip install -c requirements.txt .[docs] | ||
- name: Build docs on linux | ||
run: | | ||
cd docs | ||
|
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 |
---|---|---|
|
@@ -41,7 +41,7 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.prepare-cache-pip.outputs.cache-dir }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/min-requirements.txt') }}-${{ hashFiles('**/setup.cfg') }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/pyproject.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.python-version }}-pip- | ||
- name: generate min_requirements.txt | ||
|
@@ -51,12 +51,10 @@ jobs: | |
pip install git+https://github.com/jenshnielsen/requirements-builder.git | ||
pip install versioningit | ||
requirements-builder -l min -e test setup.py -o min_requirements.txt | ||
- name: install min_requirements.txt | ||
run: | | ||
pip install -r min_requirements.txt | ||
- name: install qcodes | ||
run: | | ||
pip install . | ||
pip install -r min_requirements.txt | ||
pip install .[test] | ||
- name: Run tests | ||
run: | | ||
pytest --hypothesis-profile ci qcodes |
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 |
---|---|---|
|
@@ -38,18 +38,12 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.prepare-cache-pip.outputs.cache-dir }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/test_requirements.txt') }}-${{ hashFiles('**/setup.cfg') }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/pyproject.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.python-version }}-pip- | ||
- name: install requirements.txt | ||
run: | | ||
pip install -r requirements.txt | ||
- name: install test_requirements.txt | ||
run: | | ||
pip install -r test_requirements.txt | ||
- name: install qcodes | ||
run: | | ||
pip install . | ||
pip install .[test] -c requirements.txt | ||
- name: Test with pytest | ||
run: | | ||
cd .. | ||
|
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 |
---|---|---|
|
@@ -49,18 +49,12 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.prepare-cache-pip.outputs.cache-dir }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/test_requirements.txt') }}-${{ hashFiles('**/setup.cfg') }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/pyproject.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.python-version }}-pip- | ||
- name: install requirements.txt | ||
run: | | ||
pip install -r requirements.txt | ||
- name: install test_requirements.txt | ||
run: | | ||
pip install -r test_requirements.txt | ||
- name: install qcodes | ||
run: | | ||
pip install . | ||
pip install .[test] -c requirements.txt | ||
- name: Run Mypy | ||
run: mypy qcodes | ||
- name: Run parallel tests | ||
|
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.