Skip to content

Commit dcbec04

Browse files
chore: flat structure
1 parent a859cf5 commit dcbec04

File tree

100 files changed

+978
-1193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+978
-1193
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,12 @@ on:
55
secrets:
66
token:
77
required: true
8-
inputs:
9-
folder_path:
10-
description: 'The folder path to run actions in'
11-
required: true
12-
type: string
138

149
jobs:
1510
build:
1611
name: Build and publish
1712
if: github.ref == 'refs/heads/main'
1813
runs-on: "ubuntu-24.04"
19-
defaults:
20-
run:
21-
working-directory: ${{ inputs.folder_path }}
22-
2314

2415
steps:
2516
- uses: actions/checkout@v4
@@ -39,7 +30,17 @@ jobs:
3930
run: |
4031
uv build
4132
33+
- name: Check if version in pyproject.toml was modified
34+
id: check_version
35+
run: |
36+
if git diff --name-only ${{ github.sha }} ${{ github.event.before }} | grep -q 'pyproject.toml'; then
37+
echo "modified=true" >> $GITHUB_OUTPUT
38+
else
39+
echo "modified=false" >> $GITHUB_OUTPUT
40+
fi
41+
4242
- name: "Publish"
43+
if: ${{ steps.check_version.outputs.modified }} == 'true'
4344
run: |
4445
uv publish
4546
env:

.github/workflows/cd.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: CD
2+
3+
on:
4+
workflow_dispatch: {}
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
uses: ./.github/workflows/build.yml
12+
secrets:
13+
token: ${{ secrets.PYPI_TOKEN }}

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Core CI
2+
3+
on:
4+
workflow_dispatch: {}
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- "src/uipath_sdk/**"
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- "src/uipath_sdk/**"
15+
16+
jobs:
17+
lint:
18+
uses: ./.github/workflows/lint.yml
19+
20+
test:
21+
uses: ./.github/workflows/test.yml

.github/workflows/core_ci.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ name: Reusable Lint Workflow
33
on:
44
workflow_call:
55
inputs:
6-
folder_path:
7-
description: 'The folder path to run actions in'
8-
required: true
9-
type: string
106
should_skip:
117
description: 'Whether to skip the linting step'
128
required: false
@@ -18,9 +14,6 @@ jobs:
1814
name: Lint
1915
runs-on: "ubuntu-24.04"
2016
if: inputs.should_skip == false
21-
defaults:
22-
run:
23-
working-directory: ${{ inputs.folder_path }}
2417

2518

2619
steps:

.github/workflows/rest_ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
1-
name: Core CI
1+
name: Dumb CI
22

33
on:
44
workflow_dispatch: {}
55
push:
66
branches:
77
- main
88
paths-ignore:
9-
- "sdk/**"
9+
- "src/**"
1010
pull_request:
1111
branches:
1212
- main
1313
paths-ignore:
14-
- "sdk/**"
14+
- "src/**"
1515

1616
jobs:
1717
lint:
1818
uses: ./.github/workflows/lint.yml
1919
with:
2020
should_skip: true
21-
folder_path: "."
2221

2322
test:
2423
uses: ./.github/workflows/test.yml
2524
with:
26-
should_skip: true
27-
folder_path: "."
25+
should_skip: true

.github/workflows/test.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ name: Reusable Test Workflow
33
on:
44
workflow_call:
55
inputs:
6-
7-
folder_path:
8-
description: 'The folder path to run actions in'
9-
required: true
10-
type: string
116
should_skip:
127
description: 'Whether to skip the linting step'
138
required: false
@@ -19,9 +14,6 @@ jobs:
1914
name: Test
2015
runs-on: "ubuntu-24.04"
2116
if: inputs.should_skip == false
22-
defaults:
23-
run:
24-
working-directory: ${{ inputs.folder_path }}
2517

2618
steps:
2719
- uses: actions/checkout@v4

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ See `just --list` for linting, formatting and build commands.
3434
### Use SDK Locally
3535
1. Create a folder on your own device `mkdir project; cd project`
3636
2. Initialize the python project `uv` `uv init . --python 3.9`
37-
3. Obtain the project path `PATH_TO_SDK=/Users/YOU_USER/platform-sdk/sdk/core`
37+
3. Obtain the project path `PATH_TO_SDK=/Users/YOU_USER/uipath-python`
3838
4. Install the sdk in editable mode `uv add --editable ${PATH_TO_SDK}`
3939

4040
:information_source: Instead of cloning the project into `.venv/lib/python3.9/site-packages/uipath_sdk`, this mode creates a file named `_uipath_sdk.pth` inside `.venv/lib/python3.9/site-packages`. This file contains the value of `PATH_TO_SDK`, which is added to `sys.path`—the list of directories where python searches for packages. (Run `python -c 'import sys; print(sys.path)'` to see the entries.)

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,3 @@ To properly use the CLI for packaging and publishing, your project should includ
158158
- A `uipath.json` file (generated by `uipath init`)
159159
- Any Python files needed for your automation
160160

161-
## Development
162-
163-
### Setting Up a Development Environment
164-
165-
Please read our [contribution guidelines](CONTRIBUTING.md) before submitting a pull request.
166-

0 commit comments

Comments
 (0)