Create ci.yml #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |