Skip to content

Bump actions/checkout from 3 to 4 #125

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #125

Workflow file for this run

name: Run Tests
on: [push, pull_request]
jobs:
tests:
name: Run Tests
defaults:
run:
shell: bash -l {0}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.9, '3.10', '3.11', '3.12']
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: set up Python ${{ matrix.python-version }}
uses: conda-incubator/[email protected]
with:
auto-update-conda: true
miniconda-version: "latest"
python-version: ${{ matrix.python-version }}
environment-file: ci/test_environment.yml
activate-environment: linsolve_tests
- name: Conda Info
run: |
conda info -a
conda list
PYVER=`python -c "import sys; print('{:d}.{:d}'.format(sys.version_info.major, sys.version_info.minor))"`
if [[ $PYVER != $PYTHON ]]; then
exit 1;
fi
- name: Install linsolve
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Run Tests
run: |
pytest --cov=linsolve --cov-report xml:coverage.xml
- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests
env_vars: PYTHON
verbose: true