added necessary dependencies for running tutorial in colab #774
Workflow file for this run
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: SMACT CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| workflow_call: | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| exclude: | |
| - os: windows-latest | |
| python-version: 3.13 # Temporarily disable Windows for Python 3.13 due to compatibility issues | |
| runs-on: ${{matrix.os}} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Install uv and set up Python ${{ matrix.python-version }} | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| uv sync --extra optional --dev | |
| - name: Log the environment | |
| run: uv pip freeze | |
| - name: Run tests and collect coverage | |
| env: | |
| MP_API_KEY: ${{ secrets.MP_API_KEY }} | |
| run: uv run pytest --cov=smact --cov-report=xml -v | |
| - name: Upload coverage reports to CodeCov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| #files: ./coverage.xml | |
| fail_ci_if_error: False | |
| env_vars: OS,PYTHON | |
| verbose: true |