EBR-40 temp commit upload only python 3.12 packages #96
Workflow file for this run
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: 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 |