Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/asv_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
shell: bash -el {0}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Install Python
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
python-version: '3.12'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Install Python 3.12
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
python-version: '3.12'
- name: Install Flake8 5.0.4 linter
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: ubuntu-latest
steps:
# fetch all commits and tags so versioneer works
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
# Python version should be the minimum supported version
python-version: "3.11"
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
working-directory: ./tmp

- name: Store the distribution packages
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: python-package-distributions
path: dist/
Expand All @@ -67,7 +67,7 @@ jobs:

steps:
- name: Download all dist files
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: python-package-distributions
path: dist/
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/pytest-remote-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,32 +66,35 @@ jobs:
if: (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'remote-data')) || (github.event_name == 'push')

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
if: github.event_name == 'pull_request_target'
# pull_request_target runs in the context of the target branch (pvlib/main),
# but what we need is the hypothetical merge commit from the PR:
with:
ref: "refs/pull/${{ github.event.number }}/merge"
allow-unsafe-pr-checkout: true # see above discussion; manual triggering makes this ok

- uses: actions/checkout@v4
- uses: actions/checkout@v7
if: github.event_name == 'push'

- name: Set up conda environment
uses: conda-incubator/setup-miniconda@v3
uses: mamba-org/setup-micromamba@v3
with:
activate-environment: test_env
environment-file: ${{ env.REQUIREMENTS }}
python-version: ${{ matrix.python-version }}
auto-activate-base: false
cache-downloads: false
cache-environment: false
create-args: >-
python=${{ matrix.python-version }}
condarc: |
channel-priority: flexible
env:
# build requirement filename. First replacement is for the python
# version, second is to add "-min" if needed
REQUIREMENTS: ci/requirements-py${{ matrix.python-version }}${{ matrix.suffix }}.yml

- name: List installed package versions
shell: bash -l {0} # necessary for conda env to be active
run: conda list
run: micromamba list

- name: Run tests
shell: bash -l {0} # necessary for conda env to be active
Expand All @@ -108,7 +111,7 @@ jobs:

- name: Upload coverage to Codecov
if: matrix.python-version == '3.11' && matrix.suffix == ''
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v7
with:
fail_ci_if_error: true
verbose: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 100

Expand All @@ -40,7 +40,7 @@ jobs:

- name: Install Conda environment with Micromamba
if: matrix.environment-type == 'conda'
uses: mamba-org/setup-micromamba@v2
uses: mamba-org/setup-micromamba@v3
with:
environment-file: ${{ env.REQUIREMENTS }}
cache-downloads: false
Expand All @@ -61,7 +61,7 @@ jobs:

- name: Install bare Python ${{ matrix.python-version }}${{ matrix.suffix }}
if: matrix.environment-type == 'bare'
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -84,7 +84,7 @@ jobs:

- name: Upload coverage to Codecov
if: matrix.python-version == '3.11' && matrix.suffix == '' && matrix.os == 'ubuntu-latest' && matrix.environment-type == 'conda'
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v7
with:
fail_ci_if_error: true
verbose: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/top-ranked-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v4 # This ensures the repository code is available
uses: actions/checkout@v7 # This ensures the repository code is available

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
python-version: "3.12"

Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-py3.11-min.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ channels:
# - defaults # not supported by mamba
- conda-forge
dependencies:
- python=3.11
- coveralls
- pip
- pytest
- pytest-cov
- pytest-mock
- pytest-timeout
- python=3.11
- pytz
- requests
- pip:
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-py3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ channels:
# - defaults # not supported by mamba
- conda-forge
dependencies:
- python=3.11
- coveralls
- cython
- ephem
Expand All @@ -18,7 +19,6 @@ dependencies:
- pytest-timeout
- pytest-rerunfailures
- conda-forge::pytest-remotedata # version in default channel is old
- python=3.11
- pytz
- requests
- scipy >= 1.7.2
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-py3.12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ channels:
# - defaults # not supported by mamba
- conda-forge
dependencies:
- python=3.12
- coveralls
- cython
- ephem
Expand All @@ -18,7 +19,6 @@ dependencies:
- pytest-timeout
- pytest-rerunfailures
- conda-forge::pytest-remotedata # version in default channel is old
- python=3.12
- pytz
- requests
- scipy >= 1.7.2
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-py3.13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ channels:
# - defaults # not supported by mamba
- conda-forge
dependencies:
- python=3.13
- coveralls
- cython
- ephem
Expand All @@ -18,7 +19,6 @@ dependencies:
- pytest-timeout
- pytest-rerunfailures
- conda-forge::pytest-remotedata # version in default channel is old
- python=3.13
- pytz
- requests
- scipy >= 1.7.2
Expand Down
4 changes: 2 additions & 2 deletions ci/requirements-py3.14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ channels:
# - defaults # not supported by mamba
- conda-forge
dependencies:
- python=3.14
- coveralls
- cython
- ephem
- h5py
# - numba # not available for py 3.14 as of 2025-11-03
- numba
- numpy >= 1.21.2
- pandas >= 1.3.3
- pip
Expand All @@ -18,7 +19,6 @@ dependencies:
- pytest-timeout
- pytest-rerunfailures
- conda-forge::pytest-remotedata # version in default channel is old
- python=3.14
- pytz
- requests
- scipy >= 1.7.2
Expand Down
Loading