Skip to content

Commit b533057

Browse files
authored
Merge pull request #4 from AdamRJensen/test_cron_script
Test cron script
2 parents 3c7b5da + 7d15199 commit b533057

File tree

168 files changed

+44645
-40044
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+44645
-40044
lines changed

.github/workflows/asv_check.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,30 @@ jobs:
1616
shell: bash -el {0}
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
2222

2323
- name: Install Python
24-
uses: actions/setup-python@v3
24+
uses: actions/setup-python@v5
2525
with:
2626
python-version: '3.9'
2727

2828
- name: Install asv
2929
run: pip install asv==0.4.2
3030

31+
# asv 0.4.2 (and more recent versions as well) creates conda envs
32+
# using the --force option, which was removed in conda 24.3.
33+
# Since ubuntu-latest now comes with conda 24.3 pre-installed,
34+
# using the system's conda will result in error.
35+
# To prevent that, we install an older version.
36+
# TODO: remove this when we eventually upgrade our asv version.
37+
# https://github.com/airspeed-velocity/asv/issues/1396
38+
- name: Install Conda
39+
uses: conda-incubator/setup-miniconda@v3
40+
with:
41+
conda-version: 24.1.2
42+
3143
- name: Run asv benchmarks
3244
run: |
3345
cd benchmarks

.github/workflows/flake8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout source
9-
uses: actions/checkout@v3
9+
uses: actions/checkout@v4
1010
- name: Install Python 3.11
11-
uses: actions/setup-python@v4
11+
uses: actions/setup-python@v5
1212
with:
1313
python-version: '3.11'
1414
- name: Install Flake8 5.0.4 linter

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
# fetch all commits and tags so versioneer works
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

2222
- name: Set up Python
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v5
2424
with:
25-
python-version: 3.8
25+
python-version: 3.9
2626

2727
- name: Install build tools
2828
run: |

.github/workflows/pytest-remote-data.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,28 +56,28 @@ jobs:
5656
strategy:
5757
fail-fast: false # don't cancel other matrix jobs when one fails
5858
matrix:
59-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
59+
python-version: [3.9, "3.10", "3.11", "3.12"]
6060
suffix: [''] # the alternative to "-min"
6161
include:
62-
- python-version: 3.7
62+
- python-version: 3.9
6363
suffix: -min
6464

6565
runs-on: ubuntu-latest
6666
if: (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'remote-data')) || (github.event_name == 'push')
6767

6868
steps:
69-
- uses: actions/checkout@v3
69+
- uses: actions/checkout@v4
7070
if: github.event_name == 'pull_request_target'
7171
# pull_request_target runs in the context of the target branch (pvlib/main),
7272
# but what we need is the hypothetical merge commit from the PR:
7373
with:
7474
ref: "refs/pull/${{ github.event.number }}/merge"
7575

76-
- uses: actions/checkout@v2
76+
- uses: actions/checkout@v4
7777
if: github.event_name == 'push'
7878

7979
- name: Set up conda environment
80-
uses: conda-incubator/setup-miniconda@v2
80+
uses: conda-incubator/setup-miniconda@v3
8181
with:
8282
activate-environment: test_env
8383
environment-file: ${{ env.REQUIREMENTS }}
@@ -103,9 +103,11 @@ jobs:
103103
run: pytest pvlib/tests/iotools --cov=./ --cov-report=xml --remote-data
104104

105105
- name: Upload coverage to Codecov
106-
if: matrix.python-version == 3.7 && matrix.suffix == ''
107-
uses: codecov/codecov-action@v3
106+
if: matrix.python-version == 3.9 && matrix.suffix == ''
107+
uses: codecov/codecov-action@v4
108108
with:
109109
fail_ci_if_error: true
110110
verbose: true
111111
flags: remote-data # flags are configured in codecov.yml
112+
env:
113+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/pytest.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
fail-fast: false # don't cancel other matrix jobs when one fails
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
15-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
15+
python-version: [3.9, "3.10", "3.11", "3.12"]
1616
environment-type: [conda, bare]
1717
suffix: [''] # placeholder as an alternative to "-min"
1818
include:
1919
- os: ubuntu-latest
20-
python-version: 3.7
20+
python-version: 3.9
2121
environment-type: conda
2222
suffix: -min
2323
exclude:
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232
# We check out only a limited depth and then pull tags to save time
3333
- name: Checkout source
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535
with:
3636
fetch-depth: 100
3737

@@ -60,7 +60,7 @@ jobs:
6060

6161
- name: Install bare Python ${{ matrix.python-version }}${{ matrix.suffix }}
6262
if: matrix.environment-type == 'bare'
63-
uses: actions/setup-python@v4
63+
uses: actions/setup-python@v5
6464
with:
6565
python-version: ${{ matrix.python-version }}
6666

@@ -82,9 +82,11 @@ jobs:
8282
pytest pvlib --cov=./ --cov-report=xml --ignore=pvlib/tests/iotools
8383
8484
- name: Upload coverage to Codecov
85-
if: matrix.python-version == 3.7 && matrix.suffix == '' && matrix.os == 'ubuntu-latest' && matrix.environment-type == 'conda'
86-
uses: codecov/codecov-action@v3
85+
if: matrix.python-version == 3.9 && matrix.suffix == '' && matrix.os == 'ubuntu-latest' && matrix.environment-type == 'conda'
86+
uses: codecov/codecov-action@v4
8787
with:
8888
fail_ci_if_error: true
8989
verbose: true
9090
flags: core # flags are configured in codecov.yml
91+
env:
92+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: top_ranked_issues
2+
3+
on:
4+
pull_request: # for testings purposes, should be removed
5+
schedule:
6+
# Runs every day at 3:00 AM UTC
7+
- cron: '0 3 * * *'
8+
9+
jobs:
10+
run-script:
11+
runs-on: ubuntu-latest
12+
13+
# Define GitHub access token
14+
env:
15+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
17+
18+
steps:
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.12"
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install github
28+
29+
# Run a sample script
30+
- name: Run Script
31+
run: |
32+
python ./scripts/update_top_ranking_issues.py

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ docs/sphinx/source/reference/generated
4343
docs/sphinx/source/reference/*/generated
4444
docs/sphinx/source/savefig
4545
docs/sphinx/source/gallery
46+
docs/sphinx/source/sg_execution_times.rst
4647

4748
# Installer logs
4849
pip-log.txt

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Contributing
8181
============
8282

8383
We need your help to make pvlib-python a great tool!
84-
Please see the [Contributing page](http://pvlib-python.readthedocs.io/en/stable/contributing.html) for more on how you can contribute.
84+
Please see the [Contributing page](https://pvlib-python.readthedocs.io/en/stable/contributing/index.html) for more on how you can contribute.
8585
The long-term success of pvlib-python requires substantial community support.
8686

8787

@@ -145,9 +145,8 @@ BSD 3-clause.
145145
History and acknowledgement
146146
===========================
147147

148-
pvlib python started out as a Python translation of the PVLIB MATLAB
149-
toolbox (developed by the [PVPMC](https://pvpmc.sandia.gov/) at
150-
Sandia National Laboratories) in 2013 and has grown substantially since then.
148+
pvlib python began in 2013 as a Python translation of the [PVLIB for Matlab](https://github.com/sandialabs/MATLAB_PV_LIB)
149+
toolbox developed by Sandia National Laboratories. pvlib python has grown substantially since then.
151150
Today it contains code contributions from over a hundred individuals worldwide
152151
and is maintained by a core group of PV modelers from a variety of institutions.
153152

benchmarks/asv.conf.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,19 @@
113113
"include": [
114114
// minimum supported versions
115115
{
116-
"python": "3.7",
116+
"python": "3.9",
117117
"build": "",
118-
"numpy": "1.16.5",
119-
"pandas": "0.25.0",
120-
"scipy": "1.5.0",
118+
"numpy": "1.19.5",
119+
"pandas": "1.3.0",
120+
"scipy": "1.6.0",
121121
// Note: these don't have a minimum in setup.py
122122
"h5py": "3.1.0",
123-
"ephem": "3.7.6.0",
124-
"numba": "0.40.0"
123+
"ephem": "4.0.0.1", // first version to support py 3.9
124+
"numba": "0.53.0", // first version to support py 3.9
125125
},
126126
// latest versions available
127127
{
128-
"python": "3.8",
128+
"python": "3.9",
129129
"build": "",
130130
"numpy": "",
131131
"pandas": "",

ci/requirements-py3.10.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies:
2121
- python=3.10
2222
- pytz
2323
- requests
24-
- scipy >= 1.5.0
24+
- scipy >= 1.6.0
2525
- statsmodels
2626
- pip:
2727
- nrel-pysam>=2.0

ci/requirements-py3.11.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies:
2121
- python=3.11
2222
- pytz
2323
- requests
24-
- scipy >= 1.5.0
24+
- scipy >= 1.6.0
2525
- statsmodels
2626
- pip:
2727
- nrel-pysam>=2.0

ci/requirements-py3.12.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies:
2121
- python=3.12
2222
- pytz
2323
- requests
24-
- scipy >= 1.5.0
24+
- scipy >= 1.6.0
2525
- statsmodels
2626
- pip:
2727
- nrel-pysam>=2.0

ci/requirements-py3.7.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

ci/requirements-py3.8.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

ci/requirements-py3.7-min.yml renamed to ci/requirements-py3.9-min.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ dependencies:
88
- pytest-cov
99
- pytest-mock
1010
- pytest-timeout
11-
- python=3.7
11+
- python=3.9
1212
- pytz
1313
- requests
1414
- pip:
15-
- dataclasses
16-
- h5py==3.1.0
17-
- numpy==1.17.3
18-
- pandas==1.3.0
19-
- scipy==1.5.0
15+
- h5py==3.0.0
16+
- numpy==1.19.3
17+
- pandas==1.3.0 # min version of pvlib
18+
- scipy==1.6.0
2019
- pytest-rerunfailures # conda version is >3.6
2120
- pytest-remotedata # conda package is 0.3.0, needs > 0.3.1
2221
- requests-mock

ci/requirements-py3.9.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies:
2121
- python=3.9
2222
- pytz
2323
- requests
24-
- scipy >= 1.5.0
24+
- scipy >= 1.6.0
2525
- statsmodels
2626
- pip:
2727
- nrel-pysam>=2.0

docs/examples/agrivoltaics/README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Agrivoltaic Systems Modelling
2+
-----------------------------

0 commit comments

Comments
 (0)