Added matplotlib as an *optional* dependency since now at least one e… #931
Workflow file for this run
This file contains hidden or 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: 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@v3 | |
| with: | |
| miniforge-variant: Miniforge3 | |
| miniforge-version: latest | |
| channels: conda-forge | |
| channel-priority: true | |
| auto-update-conda: true | |
| 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@v3 | |
| with: | |
| miniforge-variant: Miniforge3 | |
| miniforge-version: latest | |
| channels: conda-forge | |
| channel-priority: true | |
| auto-update-conda: true | |
| 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 |