diff options
author | Alexandre Gramfort <alexandre.gramfort@m4x.org> | 2020-04-21 12:26:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 12:26:23 +0200 |
commit | e5931823630010bb5a99586accf09606b0a3bf90 (patch) | |
tree | 3fb445a4eb86014686d71c6a17b929caf8afe655 /.github/workflows | |
parent | 3ade772179eb0405ae6bc70cfc5e701b70d70e89 (diff) | |
parent | 3eed3cad36ec5f5691dc029853bc36bfad5ee389 (diff) |
Doc ci build (#145)
add codecov + circle ci to upload website + activate github actions for testing
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/main.yml | 12 | ||||
-rw-r--r-- | .github/workflows/pythonpackage.yml | 24 |
2 files changed, 33 insertions, 3 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7153fe6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,12 @@ +on: [status] +jobs: + circleci_artifacts_redirector_job: + runs-on: ubuntu-latest + name: Run CircleCI artifacts redirector + steps: + - name: GitHub Action step + uses: larsoner/circleci-artifacts-redirector-action@master + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + artifact-path: 0/dev/index.html + circleci-jobs: build_docs diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index cb3baf8..c4b0165 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -1,6 +1,14 @@ name: Test Package -on: [push] +on: + push: + branches: + - '**' + create: + branches: + - 'master' + tags: + - '**' jobs: build: @@ -9,7 +17,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [2.7, 3.5, 3.6, 3.7] + python-version: [3.5, 3.6, 3.7, 3.8] steps: - uses: actions/checkout@v1 @@ -21,10 +29,20 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt + pip install flake8 pytest "pytest-cov<2.6" codecov + pip install -U "sklearn" - name: Lint with flake8 run: | - pip install flake8 # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Install POT + run: | + pip install -e . + - name: Run tests + run: | + python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot + - name: Upload codecov + run: | + codecov |