Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bmm21002 committed Feb 21, 2025
1 parent bac0051 commit d652f01
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Tests on Merge
name: Run Tests on Self-Hosted Runner

on:
push:
Expand All @@ -12,21 +12,20 @@ on:

jobs:
test:
runs-on: ubuntu-latest # Use GitHub's free Ubuntu runner
runs-on: self-hosted

strategy:
matrix:
python-version: ["3.8"]

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.10' # Change this if you're using a different Python version
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: |
pip install --upgrade pip
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi # Install dependencies if a requirements.txt exists
- name: Run Tests
run: pytest tests/
run:

0 comments on commit d652f01

Please sign in to comment.