Skip to content

Commit b43b69d

Browse files
authored
Merge pull request #150 from ImperialCollegeLondon/fix_publish_workflow
Fix publish workflow
2 parents d7e1d1c + 1a17131 commit b43b69d

File tree

4 files changed

+8
-28
lines changed

4 files changed

+8
-28
lines changed

.dockerignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
!requirements.txt
33
!wsimod
44
!pyproject.toml
5-
!LICENSE
5+
!LICENSE
6+
!.git
7+
!README.md

.github/workflows/publish.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,7 @@ jobs:
2424
with:
2525
files: dist/wsimod*
2626

27-
publish-TestPyPI:
28-
needs: build-wheel
29-
name: Publish WSIMOD to TestPyPI
30-
runs-on: ubuntu-latest
31-
permissions:
32-
id-token: write
33-
34-
steps:
35-
- name: Download sdist artifact
36-
uses: actions/download-artifact@v4
37-
with:
38-
name: artifact
39-
path: dist
40-
41-
- name: Display structure of downloaded files
42-
run: ls -R dist
43-
44-
- name: Publish package distributions to TestPyPI
45-
uses: pypa/gh-action-pypi-publish@release/v1
46-
with:
47-
repository-url: https://test.pypi.org/legacy/
48-
skip-existing: true
49-
5027
publish-PyPI:
51-
needs: publish-TestPyPI
5228
name: Publish WSIMOD to PyPI
5329
runs-on: ubuntu-latest
5430
permissions:

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
FROM python:3.11.5-alpine
22

3+
RUN apk update && apk add git
4+
35
COPY --chown=nobody . /usr/src/app
46
WORKDIR /usr/src/app
57
RUN pip install --no-cache-dir .
68
USER nobody
79

8-
ENV WSIMOD_SETTINGS settings.yaml
10+
ENV WSIMOD_SETTINGS=settings.yaml
911

1012
CMD wsimod /data/inputs/${WSIMOD_SETTINGS} --inputs /data/inputs --outputs /data/outputs

wsimod/extensions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
>>> return {}
3535
3636
If patching a method of an attribute, the `is_attr` argument should be set to `True` and
37-
the target should include the attribute name and the method name, all separated by
37+
the target should include the attribute name and the method name, all separated by
3838
periods, eg. `attribute_name.method_name`.
3939
4040
It should be noted that the patched function should have the same signature as the
@@ -43,7 +43,7 @@
4343
should be the node object itself, which will typically be named `self`.
4444
4545
The overridden method or attribute can be accessed within the patched function using the
46-
`_patched_{method_name}` attribute of the object, eg. `self._patched_pull_distributed`.
46+
`_patched_{method_name}` attribute of the object, eg. `self._patched_pull_distributed`.
4747
The exception to this is when patching an item, in which case the original item is no
4848
available to be used within the overriding function.
4949

0 commit comments

Comments
 (0)