Skip to content

Create ci.yml

Create ci.yml #1

Workflow file for this run

name: Vial MCP CI/CD
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r vial/requirements.txt
- name: Run tests
run: |
python -m pytest vial/ --verbose
- name: Build Docker image
run: |
docker build -t vial-mcp -f vial/Dockerfile vial
- name: Run Docker container
run: |
docker run -d -p 5000:5000 vial-mcp