Update meta.yaml #54
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
| # This workflow will install Python dependencies, run tests and lint with a single version of Python | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
| name: prepmd CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| schedule: | |
| - cron: '0 8 * * 1' | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| name: Run tests | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-24.04, windows-2025, macos-15] | |
| python-version: ["3.13"] | |
| env: | |
| KEY_MODELLER: MODELIRANJE | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v5.0.0 | |
| - name: Cache conda packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.conda/pkgs | |
| key: ${{ runner.os }}-conda-${{ hashFiles('environment.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-conda- | |
| - name: Set up Mambaforge | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| use-mamba: true | |
| python-version: ${{ matrix.python-version }} | |
| environment-file: environment.yaml | |
| activate-environment: prep | |
| auto-update-conda: true | |
| auto-activate-base: false | |
| - name: Verify environment | |
| shell: bash -l {0} | |
| run: | | |
| conda info | |
| conda list | |
| - name: install with pip | |
| shell: bash -l {0} | |
| run: pip install -e . | |
| - name: Run test suite | |
| shell: bash -l {0} | |
| run: prep-license MODELIRANJE && pytest -v |