diff --git a/.github/workflows/readme-test.yml b/.github/workflows/readme-test.yml index c4d363e..d134a1c 100644 --- a/.github/workflows/readme-test.yml +++ b/.github/workflows/readme-test.yml @@ -24,7 +24,7 @@ jobs: run: pytest test_src - name: embedding readme - uses: tokusumi/markdown-embed-code@v1.0.0 + uses: tomasz-kapela/readme-code-testing@main with: markdown: "README.md" token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index e524656..1c7f6da 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,8 @@ This action could inspect your code, if you add a file path in code block as "\` The following code block has a file path `src/helloworld.py`: ```python:src/helloworld.py -def hello(): - return "v1.0.0 world" - ``` + See [src/helloworld.py](./src/helloworld.py) as: @@ -93,3 +91,5 @@ echo "hello" ## Formatting Notice that this action uses markdown parser/formatter, so, if you don't update any code, readme may be updated if formatter works. + +test diff --git a/src/helloworld.py b/src/helloworld.py index 822558c..037f493 100644 --- a/src/helloworld.py +++ b/src/helloworld.py @@ -1,2 +1,7 @@ def hello(): return "v1.0.0 world" + +def test(): + a=2 + return 1.0 +