Skip to content

Add more default aliases (#36) #98

Add more default aliases (#36)

Add more default aliases (#36) #98

Workflow file for this run

name: Coverage
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
test:
name: run tests ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.8'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install pytest-cov codecov coverage
pip install -e .[test]
- name: Test with pytest
run: |
source bin/rob_folders_source.sh
coverage run --source=src -m pytest
coverage report
coverage xml -o coverage.xml
shell: bash
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
if: ${{ !env.ACT }}