Skip to content

Commit

Permalink
Added Poetry to ci-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mvremec committed Jan 24, 2024
1 parent b2171bb commit ce49d84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,19 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
check-latest: true
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install Poetry
uses: snok/install-poetry@v1.1.6
with:
version: 1.1.4 # Specify the Poetry version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
poetry install
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
{name = "Raoul Collenteur", email = "raoul.collenteur@uni-graz.at"}
]
license = { file = "LICENSE" }
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = [
"numpy >= 1.16",
"xarray >= 0.18.0",
Expand Down

0 comments on commit ce49d84

Please sign in to comment.