Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f669fe

Browse files
committed
fix: action location
1 parent 54b3140 commit 1f669fe

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Setup CI Environment
2+
inputs:
3+
branch:
4+
type: string
5+
python-version:
6+
default: "3.9"
7+
type: string
8+
9+
runs:
10+
using: composite
11+
steps:
12+
- name: Setup Python
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: ${{ inputs.python-version }}
16+
17+
- name: Checkout Repository
18+
uses: actions/checkout@v3
19+
with:
20+
ref: ${{ inputs.branch }}
21+
submodules: recursive
22+
23+
- name: Install CI Dependencies
24+
run: |
25+
pip install -r ci_requirements.txt
26+
echo "/home/runner/.local/bin" >> $GITHUB_PATH

.github/workflows/build_and_upload_wheel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Setup Environment
26-
uses: ./.github/actions/setup_environment.yml
26+
uses: ./.github/actions/setup_environment
2727
with:
2828
branch: ${{ inputs.branch }}
2929

.github/workflows/run_linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Setup Environment
15-
uses: ./.github/actions/setup_environment.yml
15+
uses: ./.github/actions/setup_environment
1616

1717
- name: Lint
1818
run: pre-commit run --all-files

.github/workflows/run_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
#- "3.10"
2323
steps:
2424
- name: Setup Environment
25-
uses: ./.github/actions/setup_environment.yml
25+
uses: ./.github/actions/setup_environment
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828

0 commit comments

Comments
 (0)