Skip to content

Commit

Permalink
fixed github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
giumas committed Oct 20, 2024
1 parent 53f2948 commit a9f719c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ssm_on_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,26 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
max-parallel: 5

steps:
- uses: actions/checkout@v4
- name: setup-conda
uses: s-weigand/setup-conda@v1.2.2
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: 3.11
python-version: '3.11'
conda-channels: 'conda-forge'
- name: Install dependencies
run: |
conda config --add channels conda-forge
conda install python=3.11 appdirs cartopy gdal matplotlib-base numpy=1.* psutil pyproj qt-material
conda install gsw netCDF4 pillow pyserial scipy
pip install PySide6
sudo apt-get install -y libegl1
pip install hyo2.abc2
pip install --no-deps https://github.com/hydroffice/hyo2_abc2/archive/master.zip
pip install --no-deps .
- name: Lint with flake8
run: |
Expand All @@ -31,11 +33,10 @@ jobs:
flake8 ./hyo2/ssm2 --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 ./hyo2/ssm2 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
continue-on-error: true
- name: Test with pytest
run: |
pip install coveralls PyYAML pytest pytest-cov
py.test --cov
coverage report -m
coveralls
continue-on-error: false
# disabled linux reports to avoid mixing with windows ones
# coveralls
10 changes: 5 additions & 5 deletions .github/workflows/ssm_on_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,25 @@ on: [push]
jobs:
build:
runs-on: windows-latest
continue-on-error: true
strategy:
max-parallel: 5

steps:
- uses: actions/checkout@v4
- name: setup-conda
uses: s-weigand/setup-conda@v1.2.2
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: 3.11
python-version: '3.11'
conda-channels: 'conda-forge'
- name: Install dependencies
run: |
conda config --add channels conda-forge
conda install python=3.11 appdirs cartopy gdal matplotlib-base numpy=1.* psutil pyproj qt-material
conda install gsw netCDF4 pillow pyserial scipy
pip install PySide6
pip install hyo2.abc2
pip install --no-deps https://github.com/hydroffice/hyo2_abc2/archive/master.zip
pip install --no-deps .
- name: Lint with flake8
run: |
Expand All @@ -30,11 +32,9 @@ jobs:
flake8 .\hyo2\ssm2 --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 .\hyo2\ssm2 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
continue-on-error: true
- name: Test with pytest
run: |
pip install coveralls PyYAML pytest pytest-cov
py.test --cov
coverage report -m
coveralls
continue-on-error: false

0 comments on commit a9f719c

Please sign in to comment.