Skip to content

Commit

Permalink
updating ci action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAnnex authored Jan 26, 2024
1 parent 22f7aaa commit 6177ee1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cff-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
name: Validate CITATION.cff
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: CFF Validator
uses: dieghernan/cff-validator@main
32 changes: 16 additions & 16 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ jobs:
steps:
- name: Look for cached libcspice 🌶️ 📚
id: cache-libcspice
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./src/spiceypy/utils/libcspice.*
key: ${{ matrix.os }}-${{ env.CSPICE_VERSION }}-${{ env.CSPICE_CACHE_NUMBER }}-libcspice
- name: Setup 🔬🍦🏗️
if: ${{ matrix.os == 'windows-latest' && steps.cache-libcspice.outputs.cache-hit != 'true' }}
uses: ilammy/msvc-dev-cmd@v1.12.0
uses: ilammy/msvc-dev-cmd@v1.13.0
- name: Checkout 🌶️ 🥧
if: steps.cache-libcspice.outputs.cache-hit != 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python 🐍 3.11
if: steps.cache-libcspice.outputs.cache-hit != 'true'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Display Python 🐍 version
Expand All @@ -47,7 +47,7 @@ jobs:
run: |
python get_spice.py
- name: Upload built 🏗️ libcspice 🌶️ 📚
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.os }}
path: ./src/spiceypy/utils/libcspice.*
Expand All @@ -61,16 +61,16 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- name: Checkout 🌶️ 🥧
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Download built 🏗️ libcspice 🌶️ 📚
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: artifact-${{ matrix.os }}
path: ./src/spiceypy/utils/
- name: Set up Python 🐍 ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
check-latest: true
Expand All @@ -92,15 +92,15 @@ jobs:
echo "pip_cache_dir=$(pip cache dir)" >> $env:GITHUB_OUTPUT
- name: Cache pip's cache dir mac/linux
if: runner.os != 'Windows'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache-nix.outputs.pip_cache_dir }}
key: ${{ runner.os }}-${{ matrix.python-version }}-test-pip-${{ hashFiles('**/ci-requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-test-pip-
- name: Cache pip's cache dir windows
if: runner.os == 'Windows'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache-win.outputs.pip_cache_dir }}
key: ${{ runner.os }}-${{ matrix.python-version }}-test-pip-${{ hashFiles('**/ci-requirements.txt') }}
Expand All @@ -123,11 +123,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🌶️ 🥧
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python 🐍 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Display Python 🐍 version
Expand All @@ -140,7 +140,7 @@ jobs:
run: |
echo "pip_cache_dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Cache pip's cache dir
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.pip_cache_dir }}
key: ${{ runner.os }}-3.11-test-pip-${{ hashFiles('**/ci-requirements.txt') }}
Expand Down Expand Up @@ -170,11 +170,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🌶️ 🥧
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python 🐍 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Display Python 🐍 version
Expand All @@ -187,7 +187,7 @@ jobs:
run: |
echo "pip_cache_dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Cache pip's cache dir
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.pip_cache_dir }}
key: ${{ runner.os }}-3.11-test-pip-${{ hashFiles('**/ci-requirements.txt') }}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/publish-to-test-and-live-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🌶️ 🥧
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python 🐍 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Display Python 🐍
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Check dists
run: |
twine check dist/*
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
build_wheels:
Expand All @@ -58,28 +58,28 @@ jobs:
runs-on: ${{ matrix.config.os }}
steps:
- name: Checkout 🌶️ 🥧
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup 🔬🍦🏗️
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1.12.0
uses: ilammy/msvc-dev-cmd@v1.13.0
- name: set additional environment variables
if: runner.name == 'macOS' && runner.arch == 'arm64'
run: |
echo "CIBW_ARCHS_MACOS=arm64" >> $GITHUB_ENV
echo "ARCHFLAGS='-arch arm64'" >> $GITHUB_ENV
- name: Set up QEMU for arm64 builds
if: matrix.config.arch == 'aarch64'
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Cache libcspice.so for aarch64 builds because they take an hour to build with qemu
if: matrix.config.arch == 'aarch64'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /project/src/spiceypy/utils/libcspice.so
key: ${{ env.CSPICE_CACHE }}-${{ matrix.config.os }}-${{ matrix.config.arch }}-${{ hashFiles('get_spice.py') }}-${{ hashFiles('setup.cfg') }}
- name: Set up Python 🐍 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Display Python 🐍 Version
Expand All @@ -88,7 +88,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install -r ci-requirements.txt
python -m pip install cibuildwheel==2.15.0
python -m pip install cibuildwheel==2.16.3
- name: Build wheels for SpiceyPy 🌶️ 🥧
timeout-minutes: 120
run: |
Expand All @@ -99,20 +99,20 @@ jobs:
run: |
twine check wheelhouse/*
- name: Upload wheels for SpiceyPy 🌶️ 🥧
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
publish_to_pypi:
name: Publish SpiceyPy 🌶️ 🥧 Python 🐍 distributions 📦 to PyPI and TestPyPI
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- name: Set up Python 🐍 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Display Python 🐍
Expand Down

0 comments on commit 6177ee1

Please sign in to comment.