limnoria-wfg/.gitea/workflows/test.yml

34 lines
889 B
YAML
Raw Normal View History

2024-09-08 16:27:11 +02:00
name: Run Limnoria Plugin Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code from the repository
- name: Checkout code
run: |
mkdir -p plugins
git clone https://gitea.wildfiregames.com/${{ github.repository }} plugins/wfg --depth 1
# Step 2: Set up Python environment
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9' # Use the Python version you need
# Step 3: Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
cd plugins/wfg
pip install -r requirements.txt
cd ../../
# Step 4: Run tests
- name: Run Limnoria Plugin Tests
run: |
supybot-test -v --plugins-dir=plugins --no-network