Skip to content

Commit

Permalink
moving to github actions (#25)
Browse files Browse the repository at this point in the history
* removing coverage computation

* moving from travis to gitbug actions.

* setting fake name/email for git.
  • Loading branch information
mirkobronzi authored Apr 26, 2021
1 parent 30bc99c commit 42676a3
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 12 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: unit-tests
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: python-3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: install-dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: print env
run: |
env
- name: pytorch-test
run: |
./tests/end2end_pytorch/run.sh
- name: tensorflow-test
run: |
./tests/end2end_tensorflow/run.sh
- name: doc-creation-test
run: |
./tests/test_docs/run.sh
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions tests/end2end_pytorch/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ cd ${DIR}
cookiecutter ../.. --no-input --output-dir=./
cd wonderful_project
git init
# setting some fake name/email for git:
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git add -A
git commit -m "initial commit"
pip install -e . --quiet
Expand Down
3 changes: 3 additions & 0 deletions tests/end2end_tensorflow/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ cd ${DIR}
python -c "from cookiecutter.main import cookiecutter; cookiecutter('../..', no_input=True, extra_context={'dl_framework': 'tensorflow_cpu'}, output_dir='./')"
cd wonderful_project
git init
# setting some fake name/email for git:
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git add -A
git commit -m "initial commit"
pip install -e . --quiet
Expand Down
1 change: 0 additions & 1 deletion {{cookiecutter.project_slug}}/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ cache: pip
install:
# Reducing verbosity is needed because of Travis' limit on log length
- pip install -e . --quiet
- pip install pytest-cov
script:
# run flake8 with exactly the same options as in the commit hook:
- config/hooks/pre-commit
Expand Down

0 comments on commit 42676a3

Please sign in to comment.