Unverified Commit d740351f authored by Lysandre Debut's avatar Lysandre Debut Committed by GitHub
Browse files

Upgrade pip when doing CI (#6234)

* Upgrade pip when doing CI

* Don't forget Github CI
parent 57eb1cb6
...@@ -10,6 +10,7 @@ jobs: ...@@ -10,6 +10,7 @@ jobs:
parallelism: 1 parallelism: 1
steps: steps:
- checkout - checkout
- run: sudo pip install --upgrade pip
- run: sudo pip install .[sklearn,tf-cpu,torch,testing] - run: sudo pip install .[sklearn,tf-cpu,torch,testing]
- run: sudo pip install codecov pytest-cov - run: sudo pip install codecov pytest-cov
- run: python -m pytest -n 8 --dist=loadfile -s ./tests/ --cov | tee output.txt - run: python -m pytest -n 8 --dist=loadfile -s ./tests/ --cov | tee output.txt
...@@ -27,6 +28,7 @@ jobs: ...@@ -27,6 +28,7 @@ jobs:
parallelism: 1 parallelism: 1
steps: steps:
- checkout - checkout
- run: sudo pip install --upgrade pip
- run: sudo pip install .[sklearn,torch,testing] - run: sudo pip install .[sklearn,torch,testing]
- run: python -m pytest -n 8 --dist=loadfile -s ./tests/ | tee output.txt - run: python -m pytest -n 8 --dist=loadfile -s ./tests/ | tee output.txt
- store_artifacts: - store_artifacts:
...@@ -43,6 +45,7 @@ jobs: ...@@ -43,6 +45,7 @@ jobs:
parallelism: 1 parallelism: 1
steps: steps:
- checkout - checkout
- run: sudo pip install --upgrade pip
- run: sudo pip install .[sklearn,tf-cpu,testing] - run: sudo pip install .[sklearn,tf-cpu,testing]
- run: python -m pytest -n 8 --dist=loadfile -s ./tests/ | tee output.txt - run: python -m pytest -n 8 --dist=loadfile -s ./tests/ | tee output.txt
- store_artifacts: - store_artifacts:
...@@ -56,6 +59,7 @@ jobs: ...@@ -56,6 +59,7 @@ jobs:
RUN_CUSTOM_TOKENIZERS: yes RUN_CUSTOM_TOKENIZERS: yes
steps: steps:
- checkout - checkout
- run: sudo pip install --upgrade pip
- run: sudo pip install .[ja,testing] - run: sudo pip install .[ja,testing]
- run: python -m pytest -s ./tests/test_tokenization_bert_japanese.py | tee output.txt - run: python -m pytest -s ./tests/test_tokenization_bert_japanese.py | tee output.txt
- store_artifacts: - store_artifacts:
...@@ -71,6 +75,7 @@ jobs: ...@@ -71,6 +75,7 @@ jobs:
parallelism: 1 parallelism: 1
steps: steps:
- checkout - checkout
- run: sudo pip install --upgrade pip
- run: sudo pip install .[sklearn,torch,testing] - run: sudo pip install .[sklearn,torch,testing]
- run: sudo pip install -r examples/requirements.txt - run: sudo pip install -r examples/requirements.txt
- run: python -m pytest -n 8 --dist=loadfile -rA -s ./examples/ | tee output.txt - run: python -m pytest -n 8 --dist=loadfile -rA -s ./examples/ | tee output.txt
...@@ -83,6 +88,7 @@ jobs: ...@@ -83,6 +88,7 @@ jobs:
- image: circleci/python:3.6 - image: circleci/python:3.6
steps: steps:
- checkout - checkout
- run: sudo pip install --upgrade pip
- run: sudo pip install .[tf,torch,docs] - run: sudo pip install .[tf,torch,docs]
- run: cd docs && make html SPHINXOPTS="-W" - run: cd docs && make html SPHINXOPTS="-W"
- store_artifacts: - store_artifacts:
...@@ -106,6 +112,7 @@ jobs: ...@@ -106,6 +112,7 @@ jobs:
parallelism: 1 parallelism: 1
steps: steps:
- checkout - checkout
- run: sudo pip install --upgrade pip
# we need a version of isort with https://github.com/timothycrosley/isort/pull/1000 # we need a version of isort with https://github.com/timothycrosley/isort/pull/1000
- run: sudo pip install git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort - run: sudo pip install git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort
- run: sudo pip install .[tf,torch,quality] - run: sudo pip install .[tf,torch,quality]
......
...@@ -20,6 +20,7 @@ jobs: ...@@ -20,6 +20,7 @@ jobs:
python-version: 3.7 python-version: 3.7
- name: Install dependencies - name: Install dependencies
run: | run: |
pip install --upgrade pip
pip install torch pip install torch
pip install numpy tokenizers filelock requests tqdm regex sentencepiece sacremoses packaging pip install numpy tokenizers filelock requests tqdm regex sentencepiece sacremoses packaging
......
...@@ -35,6 +35,7 @@ jobs: ...@@ -35,6 +35,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
source .env/bin/activate source .env/bin/activate
pip install --upgrade pip
pip install torch pip install torch
pip install .[sklearn,testing] pip install .[sklearn,testing]
......
...@@ -31,6 +31,7 @@ jobs: ...@@ -31,6 +31,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
source .env/bin/activate source .env/bin/activate
pip install --upgrade pip
pip install .[sklearn,torch,testing] pip install .[sklearn,torch,testing]
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment