From aba186469ea92afb28ceae716aba914850323d8a Mon Sep 17 00:00:00 2001 From: Matt Dixon Date: Thu, 5 Dec 2024 14:19:03 -0500 Subject: [PATCH] Update GitHub Actions workflows to use self-hosted runners --- .github/workflows/main.yml | 30 +++++++++++++++++++ .../workflows/python-tests-and-publish.yml | 2 +- .github/workflows/python-tests.yml | 2 +- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f80e15e --- /dev/null +++ b/.github/workflows/main.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/python-tests-and-publish.yml b/.github/workflows/python-tests-and-publish.yml index 0fbfacf..fd778f9 100644 --- a/.github/workflows/python-tests-and-publish.yml +++ b/.github/workflows/python-tests-and-publish.yml @@ -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] diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 5ec5db9..3bf02b2 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -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]