From df2337762e7cb8aba3cd0b97c11e5e640546e77b Mon Sep 17 00:00:00 2001 From: cyclop-bot <178948048+cyclop-bot@users.noreply.github.com> Date: Mon, 2 Jun 2025 18:15:03 -0500 Subject: [PATCH] feat: Add GitHub Actions workflow for self-hosted test runner --- .github/workflows/python-tests.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/python-tests.yml diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml new file mode 100644 index 0000000..00cfe7b --- /dev/null +++ b/.github/workflows/python-tests.yml @@ -0,0 +1,28 @@ +name: Python CI + +on: [push, pull_request] + +jobs: + test: + runs-on: self-hosted + strategy: + matrix: + python-version: ["3.10"] # Targeting Python 3.10 + + steps: + - name: Check out repository + uses: actions/checkout@v4 # Updated to v4 for latest features/fixes + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 # Updated to v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Run tests + run: | + python -m unittest discover tests \ No newline at end of file