Add conda installation workflow #28
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: Conda installation | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '48 4 * * *' | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| conda: | |
| name: Conda installation | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-24.04, macos-latest] | |
| python-version: ['3.11', '3.12', '3.13'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Miniconda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| auto-update-conda: true | |
| activate-environment: amici | |
| - name: Install AMICI | |
| shell: bash -l {0} | |
| run: | | |
| pip3 install -v --user ./python/sdist | |
| - name: Test import | |
| shell: bash -l {0} | |
| run: | | |
| python -c "import os; import pprint; pprint.pprint(dict(os.environ))" | |
| python -c "from amici import _amici; print(_amici)" | |
| python -m amici |