Skip to content

Commit

Permalink
Update GitHub Actions workflows to use self-hosted runners
Browse files Browse the repository at this point in the history
  • Loading branch information
dxns-hub committed Dec 5, 2024
1 parent 50588f6 commit aba1864
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: self-hosted # This line specifies to use your self-hosted runner

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
python -m unittest discover tests
# Add any other steps your workflow needs
2 changes: 1 addition & 1 deletion .github/workflows/python-tests-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: self-hosted # This line specifies to use your self-hosted runner
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: self-hosted # This line specifies to use your self-hosted runner
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
Expand Down

0 comments on commit aba1864

Please sign in to comment.