Skip to content

Feature main v2.0 update install files (#318) #716

Feature main v2.0 update install files (#318)

Feature main v2.0 update install files (#318) #716

Workflow file for this run

# This workflow will install Python dependencies and run tests for a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Unit tests
on:
push:
branches:
- develop
- develop-ref
- feature_*
- main_*
- bugfix_*
paths-ignore:
- 'docs/**'
- '.github/pull_request_template.md'
- '.github/ISSUE_TEMPLATE/**'
- '**/README.md'
- '**/LICENSE.md'
pull_request:
types: [opened, reopened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
# these are tests that don't have external dependencies (i.e. need to run on Linux test hosts where large datasets reside or require exact machine type for
# image comparisons to work, etc.)
run: |
cd test
pytest test_agg_eclv.py
pytest test_agg_stats_and_boot.py
pytest test_agg_stats_with_groups.py
pytest test_calc_difficulty_index.py
pytest test_convert_lon_indices.py
pytest test_ctc_statistics.py
pytest test_event_equalize.py
pytest test_event_equalize_against_values.py
pytest test_lon_360_to_180.py
pytest test_statistics.py
pytest test_tost_paired.py
pytest test_utils.py
pytest test_validate_mv_python.py
pytest test_future_warnings.py