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

TST: move test dependencies to requirement files #173

Merged
merged 1 commit into from
Feb 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Build
run: python -m pip install ".[test]"
run: |
python -m pip install --upgrade pip
python -m pip install .
python -m pip install --requirement requirements/tests.txt

- run: python -m coverage run -m pytest --color=yes
- name: Test
run: |
python -m pip freeze
python -m coverage run -m pytest --color=yes

- name: Upload coverage data
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -107,8 +113,9 @@ jobs:

- name: Build
run: |
python3 -m pip install --upgrade pip
python3 -m pip install .[typecheck]
python -m pip install --upgrade pip
python -m pip install .
python -m pip install --requirement requirements/typecheck.txt

- name: Run mypy
run: mypy wxc
14 changes: 0 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,6 @@ dependencies = [
[project.license]
text = "GPL-3.0"

[project.optional-dependencies]
test = [
"coverage[toml]>=6.5.0",
"matplotlib-inline",
"numpy",
"pytest>=6.0.2",
"pytest-mock>=3.5.1",
"schema>=0.7.2",
]
typecheck = [
"mypy==0.971",
"importlib-metadata;python_version < \"3.8\"",
]

[project.readme]
file = "README.md"
content-type = "text/markdown"
Expand Down
6 changes: 6 additions & 0 deletions requirements/tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage[toml]>=6.5.0
matplotlib-inline
numpy
pytest>=6.0.2
pytest-mock>=3.5.1
schema>=0.7.2
1 change: 1 addition & 0 deletions requirements/typecheck.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mypy==0.991