Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fhieber committed Jun 3, 2020
1 parent 16b38c3 commit ed01ab8
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/mxnet_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
fail-fast: false
matrix:
python-version: [3.6, 3.7]
platform: [ubuntu-latest, windows-latest]
mxnet-version: [mxnet-mkl, mxnet]
platform: [ubuntu-latest, macos-latest]

# The type of runner that the job will run on
runs-on: ${{ matrix.platform }}
Expand All @@ -34,14 +33,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
# Runs a set of commands using the runners shell:
- name: Install dependencies ${{ matrix.mxnet-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --pre ${{ matrix.mxnet-version }} -f https://dist.mxnet.io/python/cpu
pip install -r requirements/requirements.txt
pip install "pyyaml>=5.1" "numpy>1.16.0,<2.0.0" "portalocker" "sacrebleu==1.4.3"
pip install -r requirements/requirements.dev.txt
# Runs a single command using the runners shell
pip install --pre "mxnet<2" -f https://dist.mxnet.io/python
- name: Print mxnet build
run: pip list | grep mxnet
- name: Unit tests
run: python3 setup.py test
run: pytest
- name: System tests
run: python -m pytest --maxfail=1 test/system
run: pytest --maxfail=1 test/system
52 changes: 52 additions & 0 deletions .github/workflows/push_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: push and pull request testing
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
strategy:
max-parallel: 4
fail-fast: false
matrix:
python-version: [3.6, 3.7]
platform: [ubuntu-latest, macos-latest]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
- name: Pip upgrade
run: python -m pip install --upgrade pip
- name: Sockeye requirements
run: pip install -r requirements/requirements.txt
- name: Development requirements
run: pip install -r requirements/requirements.dev.txt
- name: Unit tests
run: |
pytest --version
pytest
- name: Pylint
run: |
pylint --version
pylint --rcfile=pylintrc sockeye -E
pylint --rcfile=pylintrc test -E
- name: MyPy
run: |
mypy --version
mypy --ignore-missing-imports --follow-imports=silent @typechecked-files --no-strict-optional
- name: Check manifest
run: check-manifest --ignore sockeye/git_version.py
- name: System tests
run: |
pytest test/system

0 comments on commit ed01ab8

Please sign in to comment.