Skip to content

Commit

Permalink
remove explicit calls to git and use checkout actions submodules fiel…
Browse files Browse the repository at this point in the history
…d for recursive cloning
  • Loading branch information
ilaflott committed Nov 5, 2024
1 parent 60d1489 commit 0898850
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build_conda.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: build_conda
on:
[push]
# pull_request:
# branches:
# - FOOmainBAR
pull_request:
branches:
- main

jobs:
build:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/create_test_conda_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -26,9 +28,6 @@ jobs:
# add conda env's executables to github's PATH equiv.
echo $CONDA/envs/fms_yaml_tools/bin >> $GITHUB_PATH

# get fms_yaml_tools/schema/gfdl_msd_schemas/FMS for unittest
git submodule update --init --recursive --remote
# use *conda environment's pip* to install fms_yaml_tools
# called w/ full path to conda's python for explicitness
# called as a module (-m pip) for explicitness
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ jobs:
steps:
- name: Checkout Files
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Run Conda to Build and Publish
run: |
conda config --append channels conda-forge
conda config --append channels noaa-gfdl
conda install conda-build anaconda-client conda-verify
export ANACONDA_API_TOKEN=${{ secrets.ANACONDA_TOKEN }}
conda config --set anaconda_upload yes
git submodule update --init --recursive --remote
conda build .
4 changes: 3 additions & 1 deletion .github/workflows/python_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 0898850

Please sign in to comment.