Skip to content

Commit

Permalink
use Choco-Install
Browse files Browse the repository at this point in the history
  • Loading branch information
HotThoughts committed May 31, 2021
1 parent 6b0940d commit e002bb2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ jobs:
New-Item -Path $spacy_data_dir -Type Directory
}
make install-full
make prepare-tests-windows
make prepare-tests-windows-gha
- name: Add github workflow problem matchers
if: needs.changes.outputs.backend == 'true' && matrix.python-version == 3.6 && matrix.os == 'ubuntu-latest'
Expand Down
15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,27 @@ prepare-tests-files: prepare-spacy prepare-mitie prepare-transformers
prepare-wget-macos:
brew install wget || true

prepare-wget-windows:
choco install wget

prepare-tests-macos: prepare-wget-macos prepare-tests-files
brew install graphviz || true

prepare-tests-ubuntu: prepare-tests-files
sudo apt-get -y install graphviz graphviz-dev python-tk

prepare-wget-windows:
choco install wget

prepare-tests-windows: prepare-wget-windows prepare-tests-files
choco install graphviz

# GitHub Action has pre-installed a helper function for installing Chocolatey packages
# It will retry the installation 5 times if it fails
# See: https://github.com/actions/virtual-environments/blob/main/images/win/scripts/ImageHelpers/ChocoHelpers.ps1
prepare-wget-windows-gha:
Choco-Install wget

prepare-tests-windows-gha: prepare-wget-windows-gha prepare-tests-files
Choco-Install graphviz

test: clean
# OMP_NUM_THREADS can improve overall performance using one thread by process (on tensorflow), avoiding overload
OMP_NUM_THREADS=1 poetry run pytest tests -n $(JOBS) --cov rasa --ignore $(INTEGRATION_TEST_FOLDER)
Expand Down

0 comments on commit e002bb2

Please sign in to comment.