Skip to content

Commit 7e1fc39

Browse files
committed
format
1 parent b17373b commit 7e1fc39

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7-
branches: ["**"]
7+
branches: ['**']
88

99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.9", "3.10", "3.11","3.12", "3.13"]
16-
pydantic-version: ["2.10.6", "2.11.9"]
15+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
16+
pydantic-version: ['2.10.6', '2.11.9']
1717
include:
18-
- python-version: "3.10"
19-
pydantic-version: "2.11.9"
18+
- python-version: '3.10'
19+
pydantic-version: '2.11.9'
2020
is-dev-version: true
2121
run-expensive-tests: true
2222
steps:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-python@v6
2525
with:
2626
python-version: ${{ matrix.python-version }}
27-
cache: "pip"
27+
cache: 'pip'
2828
- name: Install dependencies
2929
run: |
3030
pip install --upgrade pip
@@ -38,7 +38,7 @@ jobs:
3838
- uses: actions/cache/restore@v4
3939
with:
4040
path: bioimageio_cache
41-
key: "py${{ matrix.python-version }}-${{ steps.get-date.outputs.date }}"
41+
key: 'py${{ matrix.python-version }}-${{ steps.get-date.outputs.date }}'
4242
- name: Check autogenerated imports
4343
run: python scripts/generate_version_submodule_imports.py check
4444
- run: ruff check
@@ -63,7 +63,7 @@ jobs:
6363
# explicit restore/save instead of cache action to cache even if coverage fails
6464
with:
6565
path: bioimageio_cache
66-
key: "py${{ matrix.python-version }}-${{ steps.get-date.outputs.date }}"
66+
key: 'py${{ matrix.python-version }}-${{ steps.get-date.outputs.date }}'
6767

6868
- run: cp .coverage .coverage.${{ matrix.python-version }}-${{ matrix.pydantic-version }}
6969
- uses: actions/upload-artifact@v4
@@ -107,9 +107,8 @@ jobs:
107107
retention-days: 1
108108
path: dist
109109

110-
111110
deploy:
112-
needs: [test,coverage]
111+
needs: [test, coverage]
113112
runs-on: ubuntu-latest
114113
steps:
115114
- uses: actions/checkout@v4
@@ -119,8 +118,8 @@ jobs:
119118
path: dist
120119
- uses: actions/setup-python@v6
121120
with:
122-
python-version: "3.12"
123-
cache: "pip"
121+
python-version: '3.12'
122+
cache: 'pip'
124123
- name: Install dependencies
125124
run: |
126125
pip install --upgrade pip
@@ -129,13 +128,13 @@ jobs:
129128
run: python scripts/generate_spec_documentation.py --dist dist/user_docs
130129
- name: Generate interactive documentation
131130
env:
132-
PYTHONPATH: "./scripts"
131+
PYTHONPATH: './scripts'
133132
run: python -m interactive_docs
134133
- name: Generate JSON schema documentation
135134
run: python scripts/generate_json_schema_documentation.py
136135
- name: Generate developer docs
137136
run: ./scripts/pdoc/run.sh
138-
- name: copy legacy file until BioImage.IO-packager is updated # TODO: remove if packager does not depend on it anymore
137+
- name: copy legacy file until BioImage.IO-packager is updated # TODO: remove if packager does not depend on it anymore
139138
run: cp weight_formats_spec.json ./dist/weight_formats_spec.json
140139
- name: Get branch name to deploy to
141140
id: get_branch
@@ -160,7 +159,7 @@ jobs:
160159
with:
161160
auto-update-conda: true
162161
auto-activate-base: true
163-
activate-environment: ""
162+
activate-environment: ''
164163
channel-priority: strict
165164
miniforge-version: latest
166165
conda-solver: libmamba
@@ -178,15 +177,15 @@ jobs:
178177
mkdir -p ./pkgs/noarch
179178
conda-build -c conda-forge conda-recipe --output-folder ./pkgs
180179
181-
# rattler-build:
182-
# name: Build package
183-
# runs-on: ubuntu-latest
184-
# steps:
185-
# - uses: actions/checkout@v4
186-
# - name: Build conda package
187-
# uses: prefix-dev/[email protected]
188-
# with:
189-
# recipe-path: conda-recipe/recipe.yaml
180+
# rattler-build:
181+
# name: Build package
182+
# runs-on: ubuntu-latest
183+
# steps:
184+
# - uses: actions/checkout@v4
185+
# - name: Build conda package
186+
# uses: prefix-dev/[email protected]
187+
# with:
188+
# recipe-path: conda-recipe/recipe.yaml
190189

191190
pip-build:
192191
name: Build and publish to PyPI
@@ -238,14 +237,14 @@ jobs:
238237
uses: pypa/gh-action-pypi-publish@release/v1.12
239238
with:
240239
user: __token__
241-
password: "${{ secrets.PYPI_TOKEN }}"
240+
password: '${{ secrets.PYPI_TOKEN }}'
242241
packages-dir: dist/
243242

244243
- name: Publish the release notes
245244
if: github.ref == 'refs/heads/main'
246245
uses: release-drafter/[email protected]
247246
with:
248247
publish: "${{ steps.tag-version.outputs.new_tag != '' }}"
249-
tag: "${{ steps.tag-version.outputs.new_tag }}"
248+
tag: '${{ steps.tag-version.outputs.new_tag }}'
250249
env:
251-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
250+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)