Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
ci: pin deps
Browse files Browse the repository at this point in the history
Better to let dependabot manage these for us too.
  • Loading branch information
peterschutt committed Jan 16, 2023
1 parent 1fe8966 commit 4e0e599
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
python-version: ${{env.PYTHON_LATEST}}
- name: Install Dependencies
run: python -m pip install --upgrade wheel tox==4.2.8
run: python -m pip install --upgrade -r requirements.ci.txt
- run: python -m tox -e pylint
mypy:
name: mypy
Expand All @@ -55,7 +55,7 @@ jobs:
with:
python-version: ${{env.PYTHON_LATEST}}
- name: Install Dependencies
run: python -m pip install --upgrade wheel tox==4.2.8
run: python -m pip install --upgrade -r requirements.ci.txt
- run: python -m tox -e mypy
pyright:
name: pyright
Expand All @@ -77,7 +77,7 @@ jobs:
with:
python-version: ${{env.PYTHON_LATEST}}
- name: Install Dependencies
run: python -m pip install --upgrade wheel tox==4.2.8
run: python -m pip install --upgrade -r requirements.ci.txt
- run: python -m tox -e pyright
tests:
name: tests on ${{matrix.python-version}}
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
with:
python-version: ${{matrix.python-version}}
- name: Install Dependencies
run: python -m pip install --upgrade wheel tox==4.2.8 tox-gh-actions
run: python -m pip install --upgrade -r requirements.ci.txt tox-gh-actions
- run: python -m tox
- name: Upload Coverage Data
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # @v3.1.1
Expand All @@ -132,7 +132,7 @@ jobs:
- uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912 #v4.4.0
with:
python-version: ${{env.PYTHON_LATEST}}
- run: python -m pip install --upgrade wheel tox==4.2.8
- run: python -m pip install --upgrade -r requirements.ci.txt
- name: Download coverage data
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # @v3.0.1
with:
Expand Down
2 changes: 2 additions & 0 deletions requirements.ci.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tox==4.3.1
wheel==0.38.4
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ isolated_build = true

[testenv]
deps =
-r{toxinidir}/dev.requirements.txt
-r{toxinidir}/requirements.dev.txt

commands =
coverage run -p -m pytest {posargs}

[testenv:pytest-plugin]
basepython = python3.11
commands = coverage run -p -m pytest tests/pytest_plugin {posargs}

[testenv:coverage]
Expand Down Expand Up @@ -77,6 +78,6 @@ basepython = python3.11
passenv =
HOME
deps =
-r{toxinidir}/docs.requirements.txt
-r{toxinidir}/requirements.docs.txt
commands =
mike {posargs: serve}

0 comments on commit 4e0e599

Please sign in to comment.