34 lines
889 B
YAML
34 lines
889 B
YAML
|
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
|