Feature/15 add time objective #47
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: Linting and pytests | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| paths-ignore: | |
| - 'docs/**' | |
| pull_request: | |
| branches: | |
| - 'main' | |
| paths-ignore: | |
| - 'docs/**' | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| env: | |
| WRT_WEATHER_DATA: '${{ github.workspace }}/tests/data/reduced_testdata_weather.nc' | |
| WRT_DEPTH_DATA: '${{ github.workspace }}/tests/data/reduced_testdata_depth.nc' | |
| WRT_BASE_PATH: '${{ github.workspace }}' | |
| GL_TOKEN: '${{ secrets.GL_TOKEN }}' | |
| strategy: | |
| matrix: | |
| python-version: [ "3.13" ] | |
| #python-version: ["3.11", "3.13"] | |
| 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: | | |
| # install dependencies required by cartopy | |
| sudo apt-get update && sudo apt-get -y install libproj-dev proj-data proj-bin libgeos-dev texlive texlive-latex-extra cm-super | |
| python -m pip install --upgrade pip | |
| if [ -f requirements.test.txt ]; then pip install -r requirements.test.txt; fi | |
| pip install git+https://git:${GL_TOKEN}@collaborating.tuhh.de/m-8/fds-research-projects/maridata/maripower.git | |
| - name: Run flake8 | |
| run: | | |
| flake8 --max-line-length=120 \ | |
| --extend-ignore F401,F403,F405,E711 | |
| - name: Run pytest | |
| run: | | |
| pytest tests |