ubuntu full env tests #99
This file contains 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: ubuntu full env tests | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
schedule: | |
- cron: "0 13 * * 1" | |
jobs: | |
build: | |
name: ${{ matrix.os }} py${{ matrix.python-version }} ${{ matrix.environment-file }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest"] | |
python-version: ["3.11", "3.12"] | |
environment-file: ["environment.yml"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
environment-file: ${{ matrix.environment-file }} | |
activate-environment: lhorizon | |
auto-update-conda: true | |
channels: conda-forge | |
python-version: ${{ matrix.python-version }} | |
auto-activate-base: false | |
- name: Set up conda environment | |
shell: bash -l {0} | |
run: | | |
python -m pip install -e . | |
conda list | |
- name: Run Tests | |
shell: bash -l {0} | |
run: pytest |