-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
166a87d
commit 19c13b3
Showing
5 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: GitHub Actions | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
name: "Python ${{ matrix.python }}, Test: ${{ matrix.lang }}" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
lang: | ||
- "API" | ||
- "c_lang or python or java or go_lang or javascript or php or haskell or ruby" | ||
- "c_sharp or visual_basic or powershell" | ||
- "r_lang or dart" | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 5 | ||
- name: Setup Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Setup dependencies and run tests | ||
run: | | ||
if [[ "${{ matrix.lang }}" == "API" ]]; then | ||
export TEST="API"; | ||
else | ||
export TEST="E2E"; | ||
export LC_ALL="en_US.UTF-8"; | ||
sudo locale-gen $LC_ALL; | ||
sudo update-locale; | ||
fi | ||
export PYTHON="${{ matrix.python }}" | ||
export LANG="${{ matrix.lang }}" | ||
export BUILD_DIRECTORY=$GITHUB_WORKSPACE | ||
bash $GITHUB_WORKSPACE/.ci/setup.sh | ||
pip install Cython numpy | ||
pip install -r $GITHUB_WORKSPACE/requirements-test.txt | ||
bash $GITHUB_WORKSPACE/.ci/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters