Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflows #994

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: deploy

# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow
# -runs/events-that-trigger-workflows#release
on:
release:
types: [published]
workflow_dispatch:

jobs:
Expand All @@ -24,12 +26,12 @@ jobs:
index-servers =
pypi
navigate-micro

[pypi]
repository: https://upload.pypi.org/legacy/
username: $env:PYPI_USERNAME
password: $env:PYPI_PASSWORD

[navigate-micro]
repository: https://upload.pypi.org/legacy/
username: $env:PYPI_USERNAME
Expand All @@ -50,4 +52,4 @@ jobs:
run: |
git tag
python -m build
twine upload -r navigate-micro dist/*
twine upload -r navigate-micro dist/*
36 changes: 36 additions & 0 deletions .github/workflows/plugins.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: test_plugins

on:
push:
branches:
- develop
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
python-version: ["3.9"]
operating-system: [windows-latest]
env:
MPLBACKEND: Agg # https://github.com/microsoft/azure-pipelines-tasks/issues/16426
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install navigate-micro
pip install navigate-at-scale
pip install navigate-constant-velocity
pip install navigate-confocal-projection
# pip install navigate-mmcore-plugin
pip install pytest
- name: Test with pytest
run: |
python3 -m pytest test/model/test_model.py -m "not hardware"
Loading