Ome-Converter: Update to bfio v2.3.3 and filepattern v2.0.4 #17
Workflow file for this run
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
name: Package tests | |
on: | |
pull_request: | |
branches: | |
- main | |
- master | |
- dev | |
permissions: | |
contents: read | |
jobs: | |
package-filter: | |
name: Filter for updated package | |
uses: ./.github/workflows/package-filter.yml | |
tests: | |
name: Test "${{ matrix.package_name }}" | |
needs: package-filter | |
strategy: | |
matrix: ${{fromJson(needs.package-filter.outputs.matrix)}} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install Poetry | |
uses: abatilo/actions-poetry@v2 | |
- name: Install pre-commit | |
run: | | |
pip install pre-commit | |
- name: Run pre-commit hooks and check for changes | |
run: | | |
cd "${{ matrix.package_dir }}" | |
poetry run pre-commit run --files ./**/** | |
if [[ $(git status --porcelain) ]] | |
then | |
echo "::error::pre-commit hooks failed for ${{ matrix.package_name }}" && exit 1 | |
fi | |
- name: Run tests | |
run: | | |
package_dir=${{ matrix.package_dir }} | |
cd $package_dir | |
poetry install | |
poetry run pytest -v | |
docker: | |
name: Build Docker images | |
needs: [package-filter, tests] | |
uses: ./.github/workflows/docker.yml | |
with: | |
matrix: ${{ needs.package-filter.outputs.matrix }} | |
push: false | |
secrets: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_TOKEN }} |