Skip to content

Update nleis_example.ipynb #44

Update nleis_example.ipynb

Update nleis_example.ipynb #44

Workflow file for this run

name: Run tests
on:
pull_request:
push:
branches:
- main
tags:
- '*'
workflow_dispatch: # Manually trigger the workflow
jobs:
linting:
name: Run linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install -r requirements.txt
pip install -e .
- name: Linting with flake8
run: |
flake8 . --count --show-source --exclude=*.ipynb_checkpoints
tests:
name: Run tests
needs: linting
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 5
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
- name: Run tests with pytest
run: |
pytest --cov=nleis .
- name: Upload coverage to coveralls
if: matrix.python-version == 3.10 && github.repository == 'yuefan98/nleis.py'
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}