Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing tests #1547

Closed
wants to merge 11 commits into from
23 changes: 15 additions & 8 deletions .github/actions/install-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ runs:
- name: Check out repository
uses: actions/checkout@v3

- name: Install GCC and GFortran 9 and 13
shell: bash
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
sudo apt-get install gcc-9 gcc-13 gfortran-9 gfortran-13 -y

- name: Set up Python
id: set-up-python
uses: actions/setup-python@v4
Expand All @@ -26,7 +33,7 @@ runs:
uses: actions/cache@v3
with:
path: ~/.local # the path depends on the OS
key: poetry-1 # increment to reset cache
key: poetry-3 # increment to reset cache

- name: Install poetry
uses: snok/install-poetry@v1
Expand All @@ -35,16 +42,16 @@ runs:
virtualenvs-in-project: true
installer-parallel: true

- name: Load cached virtual env
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.set-up-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
# - name: Load cached virtual env
# id: cached-poetry-dependencies
# uses: actions/cache@v3
# with:
# path: .venv
# key: venv-${{ runner.os }}-${{ steps.set-up-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
shell: bash
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-ansi --no-root

- name: Build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12", "3.11", "3.10"]
python-version: ["3.12"]

runs-on: ${{ matrix.os }}

Expand All @@ -23,7 +23,7 @@ jobs:
- name: Build River
uses: ./.github/actions/install-env
with:
python-version: "3.12"
python-version: ${{ matrix.python-version }}

- name: Cache River datasets
uses: actions/cache@v3
Expand Down
36 changes: 18 additions & 18 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ gym = "^0.26.2"
matplotlib = "^3.0.2"
mypy = "^1.6.1"
pre-commit = "^3.5.0"
pytest = "^7.4.2"
pytest = "^8.2.1"
ruff = "^0.1.1"
scikit-learn = "^1.3.1"
sqlalchemy = "^2.0.22"
Expand Down
Loading