This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from scalableminds/matrix_tests
Add matrix tests to GitHub Actions CI
- Loading branch information
Showing
9 changed files
with
81 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build and Upload Python Package | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.7' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install poetry | ||
poetry install | ||
- name: Build and publish | ||
env: | ||
PYPI_SCM_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
PYPI_SCM_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
poetry publish --build -u $PYPI_SCM_USERNAME -p $PYPI_SCM_PASSWORD |
23 changes: 13 additions & 10 deletions
23
.github/workflows/python-module.yml → .github/workflows/test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,39 @@ | ||
name: Test and Upload Python Package | ||
name: Test Python Package | ||
|
||
on: [push] | ||
|
||
jobs: | ||
deploy: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.6' | ||
python-version: ${{ matrix.python-version }} | ||
architecture: 'x64' # (x64 or x86) | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install poetry | ||
poetry install | ||
- name: Check formatting | ||
run: | | ||
poetry run black --check wknml tests examples | ||
- name: Unit Tests | ||
run: | | ||
mkdir -p testoutput | ||
poetry run pytest tests | ||
- name: Check Documentation for updates | ||
run: | | ||
poetry run pydoc-markdown -m wknml --render-toc > docs/ci_test.md | ||
diff docs/ci_test.md docs/wknml.md | ||
rm docs/ci_test.md | ||
- name: Build and publish | ||
if: startsWith(github.event.ref, 'refs/tags') | ||
env: | ||
PYPI_SCM_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
PYPI_SCM_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
poetry publish --build -u $PYPI_SCM_USERNAME -p $PYPI_SCM_PASSWORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
[tool.poetry] | ||
name = "wknml" | ||
version = "1.0.0" | ||
version = "1.0.1" | ||
description = "Python package to work with webKnossos NML skeleton files" | ||
authors = ["scalable minds <[email protected]>"] | ||
readme = "README.md" | ||
repository = "https://github.com/scalableminds/wknml" | ||
license = "MIT" | ||
|
||
[tool.poetry.dependencies] | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters