simen
commited on
Commit
·
e9779ed
1
Parent(s):
b4c50fc
github action runner
Browse files- .github/workflows/preprocess_data.yml +26 -0
- pyproject.toml +1 -0
- uv.lock +16 -0
.github/workflows/preprocess_data.yml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: get_data
|
| 2 |
+
on:
|
| 3 |
+
schedule:
|
| 4 |
+
- cron: "* * * * *"
|
| 5 |
+
|
| 6 |
+
jobs:
|
| 7 |
+
uv-example:
|
| 8 |
+
name: python
|
| 9 |
+
runs-on: ubuntu-latest
|
| 10 |
+
|
| 11 |
+
steps:
|
| 12 |
+
- uses: actions/checkout@v4
|
| 13 |
+
|
| 14 |
+
- name: Install uv
|
| 15 |
+
uses: astral-sh/setup-uv@v5
|
| 16 |
+
|
| 17 |
+
- name: Install the project
|
| 18 |
+
run: uv sync --all-extras --dev
|
| 19 |
+
|
| 20 |
+
- name: Run data fetch
|
| 21 |
+
# For example, using `pytest`
|
| 22 |
+
run: uv run python preprocess_forecast.py
|
| 23 |
+
env: # Set the secret as an input
|
| 24 |
+
AIVEN_USER: ${{ secrets.AIVEN_USER }}
|
| 25 |
+
AIVEN_PASSWORD: ${{ secrets.AIVEN_PASSWORD }}
|
| 26 |
+
AIVEN_HOST: ${{ secrets.AIVEN_HOST }}
|
pyproject.toml
CHANGED
|
@@ -26,4 +26,5 @@ dependencies = [
|
|
| 26 |
"xarray>=2024.7.0",
|
| 27 |
"nbformat>=5.10.4",
|
| 28 |
"anywidget>=0.9.15",
|
|
|
|
| 29 |
]
|
|
|
|
| 26 |
"xarray>=2024.7.0",
|
| 27 |
"nbformat>=5.10.4",
|
| 28 |
"anywidget>=0.9.15",
|
| 29 |
+
"polars>=1.24.0",
|
| 30 |
]
|
uv.lock
CHANGED
|
@@ -1671,6 +1671,7 @@ dependencies = [
|
|
| 1671 |
{ name = "numpy", version = "2.2.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" },
|
| 1672 |
{ name = "pandas" },
|
| 1673 |
{ name = "plotly" },
|
|
|
|
| 1674 |
{ name = "python-dateutil" },
|
| 1675 |
{ name = "requests" },
|
| 1676 |
{ name = "scipy", version = "1.13.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },
|
|
@@ -1699,6 +1700,7 @@ requires-dist = [
|
|
| 1699 |
{ name = "numpy", specifier = ">=2.0.2" },
|
| 1700 |
{ name = "pandas", specifier = ">=1.1.3" },
|
| 1701 |
{ name = "plotly", specifier = ">=4.12.0" },
|
|
|
|
| 1702 |
{ name = "python-dateutil", specifier = ">=2.8.1" },
|
| 1703 |
{ name = "requests", specifier = ">=2.24.0" },
|
| 1704 |
{ name = "scipy", specifier = ">=1.13.1" },
|
|
@@ -1810,6 +1812,20 @@ wheels = [
|
|
| 1810 |
{ url = "https://files.pythonhosted.org/packages/0e/77/a946f38b57fb88e736c71fbdd737a1aebd27b532bda0779c137f357cf5fc/plotly-6.0.0-py3-none-any.whl", hash = "sha256:f708871c3a9349a68791ff943a5781b1ec04de7769ea69068adcd9202e57653a", size = 14805949 },
|
| 1811 |
]
|
| 1812 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1813 |
[[package]]
|
| 1814 |
name = "prompt-toolkit"
|
| 1815 |
version = "3.0.50"
|
|
|
|
| 1671 |
{ name = "numpy", version = "2.2.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" },
|
| 1672 |
{ name = "pandas" },
|
| 1673 |
{ name = "plotly" },
|
| 1674 |
+
{ name = "polars" },
|
| 1675 |
{ name = "python-dateutil" },
|
| 1676 |
{ name = "requests" },
|
| 1677 |
{ name = "scipy", version = "1.13.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },
|
|
|
|
| 1700 |
{ name = "numpy", specifier = ">=2.0.2" },
|
| 1701 |
{ name = "pandas", specifier = ">=1.1.3" },
|
| 1702 |
{ name = "plotly", specifier = ">=4.12.0" },
|
| 1703 |
+
{ name = "polars", specifier = ">=1.24.0" },
|
| 1704 |
{ name = "python-dateutil", specifier = ">=2.8.1" },
|
| 1705 |
{ name = "requests", specifier = ">=2.24.0" },
|
| 1706 |
{ name = "scipy", specifier = ">=1.13.1" },
|
|
|
|
| 1812 |
{ url = "https://files.pythonhosted.org/packages/0e/77/a946f38b57fb88e736c71fbdd737a1aebd27b532bda0779c137f357cf5fc/plotly-6.0.0-py3-none-any.whl", hash = "sha256:f708871c3a9349a68791ff943a5781b1ec04de7769ea69068adcd9202e57653a", size = 14805949 },
|
| 1813 |
]
|
| 1814 |
|
| 1815 |
+
[[package]]
|
| 1816 |
+
name = "polars"
|
| 1817 |
+
version = "1.24.0"
|
| 1818 |
+
source = { registry = "https://pypi.org/simple" }
|
| 1819 |
+
sdist = { url = "https://files.pythonhosted.org/packages/bf/d3/453bcecbe14a5aba6be47c99d81f4e1f941d3de729d5e0ce5c7d527c05ed/polars-1.24.0.tar.gz", hash = "sha256:6e7553789495081c998f5e4ad4ebc7e19e970a9cc83326d40461564e85ad226d", size = 4446066 }
|
| 1820 |
+
wheels = [
|
| 1821 |
+
{ url = "https://files.pythonhosted.org/packages/a9/3f/16f87d9ec4707d717a434bc54307506594522de99fdfe3d5d76233912c94/polars-1.24.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:563b99a6597fe77a3c89d478e4a6fb49c063f44ef84d4adefe490e14626e2f99", size = 33792674 },
|
| 1822 |
+
{ url = "https://files.pythonhosted.org/packages/35/cd/27353d0b9331d60a95f5708370441348d4a3af0f609961ceaaa3b583190f/polars-1.24.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:6ad64d938d60b7fda39b60892ef67bc6a9942e0c7170db593a65d019e8730b09", size = 30469541 },
|
| 1823 |
+
{ url = "https://files.pythonhosted.org/packages/a7/db/668d8328b1c3d8381023fc4ed905a88b93cca041c088f42a94dbd6822469/polars-1.24.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:331e737465b8d954bec51e6906bdc6e979a6ee52f97ffe5e8d0c10794a46bfd9", size = 34313540 },
|
| 1824 |
+
{ url = "https://files.pythonhosted.org/packages/12/16/f95207616b2e802c381459cf01f0d233daa98bdc4e394ec88044af9e927f/polars-1.24.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:3c6c774aebdd5cd601839594986648789352f72b8893f4b7e34224e75b060c8d", size = 31490266 },
|
| 1825 |
+
{ url = "https://files.pythonhosted.org/packages/8b/82/cb0512747ec5508a4f840a521feb27f28a81eac1aef6c92fc25643073579/polars-1.24.0-cp39-abi3-win_amd64.whl", hash = "sha256:a5a473ff44fe1b9e3e7a9013a9321efe841d858e89cf33d424e6f3fef3ea4d5e", size = 34678593 },
|
| 1826 |
+
{ url = "https://files.pythonhosted.org/packages/67/00/db3810803938467a215c1f161ff21ad6fef581d5ac1381ee2990d0180c19/polars-1.24.0-cp39-abi3-win_arm64.whl", hash = "sha256:5ea781ca8e0a39c3b677171dbd852e5fa2d5c53417b5fbd69d711b6044a49eaa", size = 30892251 },
|
| 1827 |
+
]
|
| 1828 |
+
|
| 1829 |
[[package]]
|
| 1830 |
name = "prompt-toolkit"
|
| 1831 |
version = "3.0.50"
|