Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Constraints for Dependencies during install #217

Merged
merged 14 commits into from
Aug 9, 2022
8 changes: 3 additions & 5 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,13 @@ 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('**/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
- name: install broadbean & docs dependancies
trevormorgan marked this conversation as resolved.
Show resolved Hide resolved
run: |
pip install -r requirements.txt
- name: install broadbean
run: pip install .
pip install -c requirements.txt .[docs,test]
trevormorgan marked this conversation as resolved.
Show resolved Hide resolved
- name: Build docs on linux
run: |
cd docs
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,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('**/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
- name: installtest dependancies
trevormorgan marked this conversation as resolved.
Show resolved Hide resolved
run: |
pip install -r requirements.txt
pip install .[test] -c requirements.txt
- name: install broadbean
jenshnielsen marked this conversation as resolved.
Show resolved Hide resolved
run: |
pip install .
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ test = [
"jupyter>=1.0.0",
"hypothesis>=5.49.0",
]
docs = [
"sphinx",
"sphinx_rtd_theme",
"nbsphinx",
"sphinx-jsonschema",
]


[tool.pytest.ini_options]
Expand Down