28 lines
704 B
YAML
28 lines
704 B
YAML
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 |