Skip to content

Revert "EBR-40 upgrade github actions versions" #93

Revert "EBR-40 upgrade github actions versions"

Revert "EBR-40 upgrade github actions versions" #93

Workflow file for this run

name: Test
on: push
env:
COVERAGE: 1
jobs:
run_tests:
name: Run tests on ${{ matrix.os }} with python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-13 ]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools pytest pytest-cov
- name: Install project
run: |
pip install .
python setup.py clean --all build_ext --force --inplace
- name: Run tests
run: |
pytest --junitxml=results.xml --cov
- name: Run Coverage Generation
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
sudo chmod +x cppci.sh
./cppci.sh
bash <(curl -s https://codecov.io/bash) -cF python