Skip to content

jupyter - simplify add_analysis_data_file api, save analysis data fil… #630

jupyter - simplify add_analysis_data_file api, save analysis data fil…

jupyter - simplify add_analysis_data_file api, save analysis data fil… #630

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
static_analysis:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniforge-variant: Mambaforge
environment-file: .github/workflows/conda_env/environment_static_analysis.yml
#- name: flake8
#run: flake8
#- name: pylint
#run: pylint ipsframework tests
#- name: bandit
#run: bandit -lll ipsframework/*.py
- name: ruff-lint
run: ruff check
- name: ruff-format
run: ruff format --check
- name: codespell
run: codespell || true
tests:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
include:
#- os: ubuntu-latest
#python-version: 3.6
#conda_env: 'minimal'
#- os: ubuntu-latest
#python-version: 3.7
#conda_env: 'dask_2.5.2'
#- os: ubuntu-latest
#python-version: 3.8
#conda_env: 'dask_2.30.0'
- os: ubuntu-latest
python-version: 3.9
conda_env: 'dask_2022.7.0'
- os: ubuntu-latest
python-version: "3.10"
conda_env: 'linux'
- os: ubuntu-latest
python-version: "3.11"
conda_env: 'minimal'
- os: macos-latest
python-version: 3.9
conda_env: 'macos'
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniforge-variant: Mambaforge
python-version: ${{ matrix.python-version }}
environment-file: .github/workflows/conda_env/environment_${{ matrix.conda_env }}.yml
- name: Install IPS (in develop mode)
run: python -m pip install -e .
- name: testing running IPS (--help)
run: ips.py --help
- name: testing showing IPS version (--version)
run: ips.py --version
- name: Test with pytest
run: python -m pytest --cov --cov-report=xml --cov-report=term --timeout=60
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
tests-wsl:
runs-on: windows-latest
defaults:
run:
shell: wsl-bash {0}
steps:
- uses: actions/checkout@v3
- run: wsl --set-default-version 1
shell: cmd
- uses: Vampire/setup-wsl@v1
with:
additional-packages:
python-is-python3
python3-pip
python3-pytest-cov
python3-pytest-timeout
python3-psutil
python3-flask
- name: Install IPS (in develop mode)
run: python -m pip install -e .
- name: testing running IPS (--help)
run: ips.py --help
- name: testing showing IPS version (--version)
run: ips.py --version
- name: Test with pytest
run: python -m pytest --cov --timeout=60