Skip to content

Commit

Permalink
Release 2.39 (#98)
Browse files Browse the repository at this point in the history
- Fixed an issue where coordinate handling for multiple locations would mix up x with the wrong y coordinates
- Fixed an issue where requesting Arome coordinates could end up with a floating point rounding error due to differences in the handling of those between Xarray and Numpy.
- Added logging messages for Gunicorn environments for requests.
- Changed logging for environments where KNMI Waarnemingen can't find a locale to configure the datetime value to be used by.
  • Loading branch information
rflinnenbank authored Feb 15, 2023
1 parent 5830d4a commit ea2d7e0
Show file tree
Hide file tree
Showing 130 changed files with 15,101 additions and 15,713 deletions.
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[run]
include =
[run]
include =
weather_provider_api/*
76 changes: 38 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
40 changes: 20 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
98 changes: 49 additions & 49 deletions .github/workflows/pull-request-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
name: Pull Request Evaluation
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
# ---------------------------------------------------------------- #
# | Coverage and SonarCloud.io upload | #
# ---------------------------------------------------------------- #
tests-and-sonarcloud:
strategy:
matrix:
version: ["3.8", "3.9", "3.10"] # TODO: Get Python versions from the project
name: Testing and updating SonarCloud
runs-on: ubuntu-latest
steps:
# Checkout
- name: Branch checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Install Python
- name: Setup Python installation
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
# Install Poetry
- name: Setup Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry self update --preview
echo "$HOME/.local/bin" >> $GITHUB_PATH
# Install required dependencies
- name: Install dependencies
run: poetry install -v --with dev
# Run Coverage
- name: Run Coverage
run: |
poetry run coverage run -m pytest
poetry run coverage report
# Generate XML Coverage result file
- if: matrix.version == '3.8'
name: Generate Coverage XML file
run: poetry run coverage xml
# Upload coverage data to SonarCloud.io
- if: matrix.version == '3.8'
name: Update SonarCloud.io
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
name: Pull Request Evaluation
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
# ---------------------------------------------------------------- #
# | Coverage and SonarCloud.io upload | #
# ---------------------------------------------------------------- #
tests-and-sonarcloud:
strategy:
matrix:
version: ["3.8", "3.9", "3.10"] # TODO: Get Python versions from the project
name: Testing and updating SonarCloud
runs-on: ubuntu-latest
steps:
# Checkout
- name: Branch checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Install Python
- name: Setup Python installation
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
# Install Poetry
- name: Setup Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry self update --preview
echo "$HOME/.local/bin" >> $GITHUB_PATH
# Install required dependencies
- name: Install dependencies
run: poetry install -v --with dev
# Run Coverage
- name: Run Coverage
run: |
poetry run coverage run -m pytest
poetry run coverage report
# Generate XML Coverage result file
- if: matrix.version == '3.8'
name: Generate Coverage XML file
run: poetry run coverage xml
# Upload coverage data to SonarCloud.io
- if: matrix.version == '3.8'
name: Update SonarCloud.io
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Loading

0 comments on commit ea2d7e0

Please sign in to comment.