Skip to content

Commit

Permalink
Merge pull request #47 from HideakiImamura/tests/remove-stale-integra…
Browse files Browse the repository at this point in the history
…tion-tests

Remove tests for allennlp and chainer
  • Loading branch information
gen740 authored Nov 17, 2023
2 parents bf16b34 + f87c5de commit e8e3718
Show file tree
Hide file tree
Showing 21 changed files with 2 additions and 1,490 deletions.
1 change: 0 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
- name: Setup environment
run: |
sudo apt-get update
sudo apt-get -y install openmpi-bin libopenmpi-dev
- name: Install
run: |
Expand Down
15 changes: 1 addition & 14 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Setup environment
run: |
sudo apt-get update
sudo apt-get -y install openmpi-bin libopenmpi-dev libopenblas-dev
sudo apt-get -y install libopenblas-dev
- name: Install
run: |
Expand Down Expand Up @@ -71,23 +71,10 @@ jobs:
COVERAGE_COVERAGE: yes # https://github.com/nedbat/coveragepy/blob/65bf33fc03209ffb01bbbc0d900017614645ee7a/coverage/control.py#L255-L261
run: |
coverage run --source=optuna -m pytest tests \
--ignore tests/allennlp_tests \
--ignore tests/test_mxnet.py
coverage combine
coverage xml
- name: Multi-node tests
env:
OMP_NUM_THREADS: 1
PYTHONPATH: .
COVERAGE_PROCESS_START: .coveragerc
COVERAGE_COVERAGE: yes
run: |
export OMPI_MCA_rmaps_base_oversubscribe=yes
mpirun -n 2 -- coverage run -m pytest tests/test_chainermn.py
coverage combine --append
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/mac-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ jobs:
- name: Setup mac environment
run: |
brew install libomp
brew install open-mpi
brew install openblas
- name: Install
Expand Down Expand Up @@ -86,20 +84,11 @@ jobs:
- name: Tests
run: |
pytest tests \
--ignore tests/allennlp_tests \
--ignore tests/test_mxnet.py
env:
OMP_NUM_THREADS: 1

- name: Tests MPI
run: |
export OMPI_MCA_rmaps_base_oversubscribe=yes
mpirun -n 2 -- pytest tests/test_chainermn.py
env:
OMP_NUM_THREADS: 1

- name: Tests(Deprecated)
run: |
pip install "numpy<1.24"
pytest tests/allennlp_tests
pytest tests/test_mxnet.py
68 changes: 0 additions & 68 deletions .github/workflows/tests-mpi.yml

This file was deleted.

6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Setup environment
run: |
sudo apt-get update
sudo apt-get -y install openmpi-bin libopenmpi-dev libopenblas-dev
sudo apt-get -y install libopenblas-dev
- name: Install
run: |
Expand Down Expand Up @@ -87,13 +87,9 @@ jobs:
- name: Tests
run: |
pytest tests \
--ignore tests/allennlp_tests \
--ignore tests/test_mxnet.py
- name: Tests(Deprecated)
run: |
pip install "numpy<1.24"
if [ ${{ matrix.python-version }} != 3.11 ]; then
pytest tests/allennlp_tests
fi
pytest tests/test_mxnet.py
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@ document = [
"sphinx_rtd_theme",
]
all = [
"allennlp>=2.2.0; python_version<'3.11'",
"catalyst",
"chainer>=5.0.0",
"fastai",
"mpi4py",
"mxnet",
"shap",
"skorch",
Expand Down
Empty file removed tests/allennlp_tests/__init__.py
Empty file.
61 changes: 0 additions & 61 deletions tests/allennlp_tests/example.jsonnet

This file was deleted.

65 changes: 0 additions & 65 deletions tests/allennlp_tests/example_with_environment_variables.jsonnet

This file was deleted.

66 changes: 0 additions & 66 deletions tests/allennlp_tests/example_with_executor_and_pruner.jsonnet

This file was deleted.

Loading

0 comments on commit e8e3718

Please sign in to comment.