Skip to content

Commit

Permalink
Merge branch 'fix_thicknesses' of https://github.com/Loop3D/loopproje…
Browse files Browse the repository at this point in the history
…ctfile into fix_thicknesses
  • Loading branch information
AngRodrigues committed Oct 31, 2024
2 parents 7ed0a98 + fe522ca commit 110d18f
Showing 1 changed file with 10 additions and 49 deletions.
59 changes: 10 additions & 49 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,6 @@ jobs:
needs: pip-build-sdist
runs-on: ubuntu-latest
steps:
- name: Create virtual environment
# install uv and use it to create a virtual environment, then add it to
# environment variables so that it is automatically activated and can be
# used for tests below
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
. $HOME/.cargo/env
uv venv .venv
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV
echo "$PWD/.venv/bin" >> $GITHUB_PATH
- name: Download sdist from artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -68,9 +57,10 @@ jobs:
- name: Build LPF from sdist and install test dependencies
shell: bash
run: |
uv pip install --no-cache dist/*.tar.gz
uv pip install netCDF4>=1.5.4 numpy pandas pytest
uv pip list
python -m pip install --upgrade pip
pip install --no-cache dist/*.tar.gz
pip install netCDF4>=1.5.4 numpy pandas pytest
pip list
pip-build-wheels:
needs: pip-test-sdist
Expand All @@ -81,14 +71,13 @@ jobs:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest

steps:
- uses: actions/checkout@v4

- name: Build Wheels
run: |
python -m pip install --upgrade pip
pip install netCDF4>=1.5.4 --only-binary :all:
pip install build numpy pandas pytest
python -m build --wheel
Expand All @@ -108,17 +97,10 @@ jobs:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: "ubuntu-latest"
artifact: loopprojectfile-wheels-ubuntu-latest
- os: "macos-latest"
artifact: loopprojectfile-wheels-macos-latest
- os: "windows-latest"
artifact: loopprojectfile-wheels-windows-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -133,27 +115,6 @@ jobs:
run: |
python -m pip install --upgrade pip
- name: Create virtual environment (Linux / MacOS)
# install uv and use it to create a virtual environment, then add it to
# environment variables so that it is automatically activated and can be
# used for tests below
if: ${{ runner.os != 'Windows' }}
shell: bash
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
. $HOME/.cargo/env
uv venv .venv
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV
echo "$PWD/.venv/bin" >> $GITHUB_PATH
- name: Create virtual environment (Windows)
if: ${{ runner.os == 'Windows' }}
run: |
irm https://astral.sh/uv/install.ps1 | iex
uv venv .venv
"VIRTUAL_ENV=.venv" | Out-File -FilePath $env:GITHUB_ENV -Append
"$PWD/.venv/Scripts" | Out-File -FilePath $env:GITHUB_PATH -Append
- name: Download wheels from artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -163,11 +124,11 @@ jobs:
- name: Install dependencies and LoopProjectFile wheel
shell: bash
run: |
uv pip install --upgrade pip
uv pip install netCDF4>=1.5.4 --only-binary :all:
uv pip install numpy pandas pytest
uv pip install --no-cache --pre --no-index --find-links dist loopprojectfile
uv pip list
pip install --upgrade pip
pip install netCDF4>=1.5.4 --only-binary :all:
pip install numpy pandas pytest
pip install --no-cache --pre --no-index --find-links dist loopprojectfile
pip list
conda-build:
name: Conda Build-Deploy ${{ matrix.os }} - Python Version-${{ matrix.python-version }}
Expand Down

0 comments on commit 110d18f

Please sign in to comment.