Skip to content

fix: output constituent from get and pop as copy #375

fix: output constituent from get and pop as copy

fix: output constituent from get and pop as copy #375

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python on pull request
on:
pull_request:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 1 * *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.8]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Set up conda ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: pyTMD
environment-file: environment.yml
- name: Create conda Test Environment
run: |
conda install openblas-devel flake8 pytest pytest-cov cython jplephem octave oct2py
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Checkout Matlab TMD Toolbox
uses: actions/checkout@v2
with:
repository: tsutterley/TMD_Matlab_Toolbox_v2.5
path: TMD_Matlab_Toolbox
ref: inferminor
- name: Test with pytest
run: |
pip install --no-deps .
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
pytest --verbose --capture=no --cov=./ --cov-report=xml \
--username=${{ secrets.EARTHDATA_USERNAME }} \
--password=${{ secrets.EARTHDATA_PASSWORD }} \
--aws-access=${{ secrets.AWS_ACCESS_KEY_ID }} \
--aws-secret=${{ secrets.AWS_SECRET_ACCESS_KEY }} \
--aws-region=${{ secrets.AWS_REGION_NAME }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true
- name: Archive code coverage results
uses: actions/upload-artifact@v2
with:
name: code-coverage-report
path: ./coverage.xml