ソースを参照

Pin pytest and coverage in requirements-dev, use file_descriptor in tests (#454)

Pin package versions, use file_descriptor in tests to fix CI

Co-authored-by: Max Ryabinin <mryabinin0@gmail.com>
justheuristic 3 年 前
コミット
0959dfb670
2 ファイル変更6 行追加2 行削除
  1. 4 1
      .github/workflows/run-tests.yml
  2. 2 1
      requirements-dev.txt

+ 4 - 1
.github/workflows/run-tests.yml

@@ -35,6 +35,7 @@ jobs:
       - name: Test
         run: |
           cd tests
+          export HIVEMIND_MEMORY_SHARING_STRATEGY=file_descriptor
           pytest --durations=0 --durations-min=1.0 -v
   build_and_test_p2pd:
     runs-on: ubuntu-latest
@@ -61,6 +62,7 @@ jobs:
       - name: Test
         run: |
           cd tests
+          export HIVEMIND_MEMORY_SHARING_STRATEGY=file_descriptor
           pytest -k "p2p" -v
   codecov_in_develop_mode:
 
@@ -87,6 +89,7 @@ jobs:
           pip install -e . --no-use-pep517
       - name: Test
         run: |
-          pytest --cov=hivemind -v tests
+          export HIVEMIND_MEMORY_SHARING_STRATEGY=file_descriptor
+          pytest --cov hivemind -v tests
       - name: Upload coverage to Codecov
         uses: codecov/codecov-action@v1

+ 2 - 1
requirements-dev.txt

@@ -1,7 +1,8 @@
-pytest
+pytest==6.2.5  # see https://github.com/pytest-dev/pytest/issues/9621
 pytest-forked
 pytest-asyncio==0.16.0
 pytest-cov
+coverage==6.0.2  # see https://github.com/pytest-dev/pytest-cov/issues/520
 tqdm
 scikit-learn
 torchvision