v0.3.4: Package restructure and Streamlit cloud deployment #37
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install Python dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install pytest | |
| pip install -r requirements.txt | |
| - name: Build Docker image | |
| run: docker build -t mcp-r . | |
| # Run unit tests inside the Docker container where R is available | |
| - name: Run unit tests in container | |
| run: docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace mcp-r python tests/test_mcp_interface.py | |
| # End-to-end test using the container | |
| - name: End-to-end test via Docker | |
| run: | | |
| docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace mcp-r python tests/test_direct_capabilities.py |