-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0158ff
commit ed05acf
Showing
2 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
# Workflow to connect to a runner | ||
name: connect | ||
|
||
# Trigger the workflow manually | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
name: build # Name of the job | ||
runs-on: ubuntu-latest # Operating system for the job | ||
|
||
steps: | ||
- name: Checkout | ||
- name: Checkout # Step to checkout the repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
ref: ${{ github.ref }} # Use the current Git reference | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 # Use v4 for compatibility with pyproject.toml | ||
- name: Set up Python # Step to set up Python | ||
uses: actions/setup-python@v4 # Use v4 for compatibility with pyproject.toml | ||
with: | ||
python-version: '3.10' | ||
cache: pip | ||
python-version: '3.10' # Specify the Python version | ||
cache: pip # Cache the pip packages | ||
|
||
- name: Install dependencies | ||
- name: Install dependencies # Step to install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install . | ||
- name: Setup tmate session (copy paste ssh command to connect to runner) | ||
uses: mxschmitt/action-tmate@v3 | ||
python -m pip install --upgrade pip # Upgrade pip | ||
python -m pip install . # Install the project | ||
- name: Setup tmate session (copy paste ssh command to connect to runner) # Step to set up tmate session | ||
uses: mxschmitt/action-tmate@v3 # Use the action-tmate v3 action |