Skip to content

Commit

Permalink
TST: Create test_reneo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Vini2 authored Mar 22, 2024
1 parent 3d7d6a7 commit ddd0e27
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/test_reneo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]


jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: ${{ matrix.os }}

defaults:
run:
shell: bash -el {0}

strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: "actions/checkout@v3"
with:
fetch-depth: 0

# Setup env
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: reneo
environment-file: build/environment.yml
python-version: ${{ matrix.python-version }}
auto-activate-base: false

- name: "Setup Reneo on ${{ matrix.os }} for Python ${{ matrix.python-version }}"
run: |
python -m pip install --upgrade pip
pip install .
- name: "Generate coverage report on ${{ matrix.os }} for Python ${{ matrix.python-version }}"
run: |
pip install pytest pytest-cov
pytest --cov=./ --cov-report xml --cov-report lcov --cov-append

0 comments on commit ddd0e27

Please sign in to comment.