Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
scasagrande committed Jan 20, 2022
1 parent 9f1a61d commit c7aa720
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 48 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload Python Package

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip virtualenv
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
42 changes: 0 additions & 42 deletions .github/workflows/ik-ci.yml

This file was deleted.

61 changes: 61 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Testing

on:
push:

jobs:
static-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install --upgrade pip setuptools virtualenv tox
- name: Test with tox
run: tox -e pylint
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: 3.6
TOXENV: "py36"
- python-version: 3.7
TOXENV: "py37"
- python-version: 3.8
TOXENV: "py38"
- python-version: 3.9
TOXENV: "py39"
- python-version: 3.9
TOXENV: "py39-numpy"

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install --upgrade pip setuptools wheel virtualenv tox
- name: Test with tox
env:
TOXENV: ${{ matrix.TOXENV }}
run: tox
- name: Submit to coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
flag-name: Unit Test

finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ deps =
commands =
pylint -j 0 --disable=I,R {toxinidir}/instruments

[gh-actions]
python =
3.6: py36, pylint
3.7: py37
3.8: py38
3.9: py39
;[gh-actions]
;python =
; 3.6: py36, pylint
; 3.7: py37
; 3.8: py38
; 3.9: py39

0 comments on commit c7aa720

Please sign in to comment.