Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Commit 1e6bdf1

Browse files
committed
Cleaned up files
1 parent ea8b2a6 commit 1e6bdf1

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

.github/workflows/docs.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ jobs:
3232
${{ env.PIP_CACHE_DIR }}
3333
key: ${{ runner.os }}-pkgs-${{ env.CACHE_NUMBER }}
3434
- name: Set up Python
35+
id: python
3536
uses: actions/setup-python@v4
3637
with:
3738
python-version: "3.10.6"
3839
- name: Set up pip cache
39-
run: python3 -m pip config set global.cache-dir ${{ env.PIP_CACHE_DIR }}
40+
run: ${{ steps.python.outputs.python-path }} -m pip config set global.cache-dir ${{ env.PIP_CACHE_DIR }}
4041
- name: Install mkdocs
4142
working-directory: kilroy_module_pytorch_py_sdk/docs
42-
run: python3 -m pip install -r requirements.txt
43+
run: ${{ steps.python.outputs.python-path }} -m pip install -r requirements.txt
4344
- name: Deploy docs
4445
working-directory: kilroy_module_pytorch_py_sdk/docs
4546
run: mkdocs gh-deploy --force

.github/workflows/pypi.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,19 @@ jobs:
2929
${{ env.PIP_CACHE_DIR }}
3030
key: ${{ runner.os }}-pkgs-${{ env.CACHE_NUMBER }} }}
3131
- name: Set up Python
32+
id: python
3233
uses: actions/setup-python@v4
3334
with:
3435
python-version: "3.10.6"
3536
- name: Set up pip cache
36-
run: python3 -m pip config set global.cache-dir ${{ env.PIP_CACHE_DIR }}
37+
run: ${{ steps.python.outputs.python-path }} -m pip config set global.cache-dir ${{ env.PIP_CACHE_DIR }}
3738
- name: Install poetry
38-
run: python3 -m pip install -r requirements.txt
39+
run: ${{ steps.python.outputs.python-path }} -m pip install -r requirements.txt
3940
- name: Set up poetry cache
40-
run: poetry config cache-dir ${{ env.POETRY_CACHE_DIR }}
41+
run: ${{ steps.python.outputs.python-path }} -m poetry config cache-dir ${{ env.POETRY_CACHE_DIR }}
4142
- name: Bump version
4243
working-directory: kilroy_module_pytorch_py_sdk
43-
run: poetry version '${{ github.event.release.tag_name }}'
44+
run: ${{ steps.python.outputs.python-path }} -m poetry version '${{ github.event.release.tag_name }}'
4445
- name: Publish the package
4546
working-directory: kilroy_module_pytorch_py_sdk
46-
run: poetry publish --build -u '__token__' -p '${{ secrets.PYPI_TOKEN }}'
47+
run: ${{ steps.python.outputs.python-path }} -m poetry publish --build -u '__token__' -p '${{ secrets.PYPI_TOKEN }}'

.github/workflows/test-multiplatform.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,16 @@ jobs:
6868
${{ env.PIP_CACHE_DIR }}
6969
key: ${{ runner.os }}-pkgs-${{ env.CACHE_NUMBER }}
7070
- name: Set up Python
71+
id: python
7172
uses: actions/setup-python@v4
7273
with:
7374
python-version: "3.10.6"
7475
- name: Set up pip cache
75-
run: python3 -m pip config set global.cache-dir ${{ env.PIP_CACHE_DIR }}
76+
run: ${{ steps.python.outputs.python-path }} -m pip config set global.cache-dir ${{ env.PIP_CACHE_DIR }}
7677
- name: Install poetry
77-
run: python3 -m pip install -r requirements.txt
78+
run: ${{ steps.python.outputs.python-path }} -m pip install -r requirements.txt
7879
- name: Set up poetry cache
79-
run: poetry config cache-dir ${{ env.POETRY_CACHE_DIR }}
80+
run: ${{ steps.python.outputs.python-path }} -m poetry config cache-dir ${{ env.POETRY_CACHE_DIR }}
8081
- # create and activate conda environment
8182
name: Set up environment
8283
uses: conda-incubator/setup-miniconda@v2
@@ -88,11 +89,11 @@ jobs:
8889
- # install only dependencies
8990
name: Install dependencies
9091
working-directory: kilroy_module_pytorch_py_sdk
91-
run: poetry install --no-root --only main,test
92+
run: ${{ steps.python.outputs.python-path }} -m poetry install --no-root --only main,test
9293
- # workaround for non-editable install, waiting for https://github.com/python-poetry/poetry/issues/1382
9394
name: Build package
9495
working-directory: kilroy_module_pytorch_py_sdk
95-
run: poetry build -f wheel
96+
run: ${{ steps.python.outputs.python-path }} -m poetry build -f wheel
9697
- # use pip to install wheel produced in previous step
9798
name: Install package
9899
working-directory: kilroy_module_pytorch_py_sdk

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ SDK for kilroy modules using PyTorch 🧰
1414

1515
This `README` provides info about the development process.
1616

17-
For more info about the package itself
18-
see `kilroy_module_pytorch_py_sdk/README.md`
19-
or [docs](https://kilroybot.github.io/kilroy-module-pytorch-py-sdk).
17+
For more info about the package itself see
18+
[package `README`](kilroy_module_pytorch_py_sdk/README.md) or
19+
[docs](https://kilroybot.github.io/kilroy-module-pytorch-py-sdk).
2020

2121
## Quickstart (on Ubuntu)
2222

0 commit comments

Comments
 (0)