Skip to content

Commit

Permalink
actions4
Browse files Browse the repository at this point in the history
  • Loading branch information
dkazanc committed Sep 7, 2023
1 parent 3be5cb0 commit 3e6e278
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/tomobar_conda_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ jobs:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Checkout repository code
uses: actions/checkout@v3
with:
ref: "main"
fetch-depth: 0

# setup Python 3.9
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies with Conda
run: |
$CONDA/bin/conda env update --file conda-recipe/environment/environment.yml --name base
$CONDA/bin/conda install -n base conda-libmamba-solver
$CONDA/bin/conda list
- name: Decrypt a secret
run: ./.scripts/decrypt_secret.sh
Expand Down
3 changes: 3 additions & 0 deletions .scripts/conda_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export CONDA_BLD_PATH=~/conda-bld
export VERSION=$(date +%Y.%m)
conda build .

$CONDA/bin/conda install conda-build
$CONDA/bin/conda install -c anaconda anaconda-client

# upload packages to conda
find $CONDA_BLD_PATH/$OS -name *.tar.bz2 | while read file
do
Expand Down
2 changes: 1 addition & 1 deletion conda-recipe/environment/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ dependencies:
- conda-forge::pyproject-flake8
- conda-forge::pydocstyle
- conda-forge::setuptools
- anaconda::ipython
- anaconda::ipython
- anaconda::conda-build
- anaconda::anaconda-client

0 comments on commit 3e6e278

Please sign in to comment.