ubuntu full env tests #87
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: "*" | |
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"] | |
environment-file: ["environment.yml"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
environment-file: ${{ matrix.environment-file }} | |
activate-environment: lhorizon | |
auto-update-conda: false | |
python-version: ${{ matrix.python-version }} | |
- 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 --cov-config=.coveragerc --cov=lhorizon --cov-report xml:.coverage.xml | |
- name: Upload code coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
file: .coverage.xml | |
env_vars: OS,PYTHON | |
name: codecov-umbrella | |
fail_ci_if_error: false | |
verbose: true |