forked from nebari-dev/nebari
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: move conda build test to seperate job (nebari-dev#2073)
Co-authored-by: eskild <[email protected]>
- Loading branch information
1 parent
20bc7d4
commit ee1b4c9
Showing
8 changed files
with
55 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: "Test Conda Build" | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/test_conda_build.yaml" | ||
- "pyproject.toml" | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- release/\d{4}.\d{1,2}.\d{1,2} | ||
paths: | ||
- ".github/workflows/test_conda_build.yaml" | ||
- "pyproject.toml" | ||
|
||
jobs: | ||
test-conda-build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: "Checkout Infrastructure" | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: 3.8 | ||
channels: conda-forge | ||
activate-environment: nebari-dev | ||
|
||
- name: Install dependencies | ||
run: | | ||
conda install build grayskull conda-build | ||
- name: Generate sdist | ||
run: | | ||
python -m build --sdist | ||
- name: Generate meta.yaml | ||
run: | | ||
python -m grayskull pypi dist/*.tar.gz | ||
- name: Build conda package | ||
run: | | ||
conda build nebari |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters