diff options
| author | JensDiemer <git@jensdiemer.de> | 2020-01-18 18:00:01 +0100 |
|---|---|---|
| committer | JensDiemer <git@jensdiemer.de> | 2020-01-18 18:00:01 +0100 |
| commit | 6daa915fe6b236c1a8b77aecc3c7c76c838b2f56 (patch) | |
| tree | 0662f1b5361b145090002de97b750f6c5d53bf0b /.github | |
| parent | c33fac617ada1a97b4f60a471f5dcf32e992fe75 (diff) | |
| download | creole-6daa915fe6b236c1a8b77aecc3c7c76c838b2f56.tar.gz | |
modernize project
* use poetry
* add a Makefile
* add github actions
* nose -> pytest
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/pythonapp.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml new file mode 100644 index 0000000..d1c6fd7 --- /dev/null +++ b/.github/workflows/pythonapp.yml @@ -0,0 +1,43 @@ +name: build + +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Install package + run: make install + + - name: List installed packages + run: poetry run pip freeze + + - name: Run linters + run: make lint + + test: + needs: lint + runs-on: ${{ matrix.platform }} + strategy: + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + python-version: [3.6, 3.7, 3.8] + steps: + - uses: actions/checkout@v1 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Install package + run: make install + + - name: Run unit tests + run: make test |
