fix a warning on setting a value on a copy of a slice from dataframe #13
This file contains 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
# This workflow will install Python dependencies, build and run tests on the python versions in the matrix. | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Python application | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install dependencies | |
run: | | |
sudo apt-add-repository universe | |
sudo apt-get update -y && sudo apt-get upgrade -y | |
sudo apt-get install build-essential -y | |
sudo apt-get install aptitude -y | |
sudo apt-get install gfortran libudunits2-dev udunits-bin -y | |
sudo apt-get install libstdc++-10-dev libgfortran-10-dev glibc-source openmpi-bin openmpi-common libopenmpi-dev libopenmpi3 libgtk-3-bin libgtk-3-common libgtk-3-dev -y | |
sudo apt-get install netcdf-bin libnetcdf-dev libnetcdff-dev libnetcdf-c++4 libnetcdf-c++4-dev -y | |
python -m pip install --upgrade pip | |
pip3 install wheel dask pyproj fiona bmipy opencv-contrib-python-headless | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Install t-route | |
run: | | |
./compiler.sh no-e | |
- name: Run V3 Test | |
run: | | |
cd test/LowerColorado_TX | |
python -m nwm_routing -f -V3 test_AnA.yaml | |
cd ../.. | |
- name: Run V4 Test on NHD | |
run: | | |
cd test/LowerColorado_TX | |
python -m nwm_routing -f -V4 test_AnA_V4_NHD.yaml | |
cd ../.. | |
- name: Run V4 Test on HYFeature | |
run: | | |
cd test/LowerColorado_TX_v4 | |
python -m nwm_routing -f -V4 test_AnA_V4_HYFeature.yaml | |
cd ../.. | |
- name: Run V4 Test on HYFeature without DA | |
run: | | |
cd test/LowerColorado_TX_v4 | |
python -m nwm_routing -f -V4 test_AnA_V4_HYFeature_noDA.yaml | |
cd ../.. |