Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
adku1173 committed May 22, 2024
1 parent 6684590 commit b51bc99
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 17 deletions.
26 changes: 26 additions & 0 deletions .github/actions/setup-conda/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Set up conda'
description: 'Set up conda environment with build'
inputs:
python-version:
description: 'The Python version'
required: false
default: '3.12'
runs:
using: composite
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Conda environment creation and activation
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ inputs.python-version }}
auto-update-conda: false
- name: Conda info
shell: bash
run: conda info
- name: Install conda build
shell: bash
run: conda install -n base conda-build # Install conda-build in the base env


22 changes: 5 additions & 17 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,13 @@ jobs:
conda_deployment_with_new_tag:
name: Test conda deployment of package with Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/checkout@v4
- name: Conda environment creation and activation
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Conda build
run:
conda info # Display information about current conda install
conda install -n base conda-build # Install conda-build in the base env
conda build --no-copy-test-source-files recipe.local --output-folder ./conda_packages
- name: Set up hatch
uses: ./.github/actions/setup-conda
- name: build package
run: conda build --no-copy-test-source-files recipe.local --output-folder ./conda_packages
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit b51bc99

Please sign in to comment.