Skip to content

Checking for and removing deprecated python code #1185

Checking for and removing deprecated python code

Checking for and removing deprecated python code #1185

Workflow file for this run

name: Run tests
on:
pull_request:
branches:
- master
paths:
- 'src/**'
- 'tutorials/**'
- 'tests/**'
push:
branches:
- master
paths:
- 'src/**'
- 'tutorials/**'
- 'tests/**'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 6
matrix:
os: [ubuntu-latest, macOS-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: false
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Test the source code
run: |
pytest -x --ci tests/ -m 'not (tutorials or espresso)' --cov-config=.coveragerc --cov=./src/koopmans/ --cov-report=xml
- name: Upload coverage to Codecov
if: github.repository == 'epfl-theos/koopmans'
uses: codecov/codecov-action@v5
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}