Skip to content

Commit

Permalink
Merge pull request #10 from nsls2-conda-envs/2023-3.1
Browse files Browse the repository at this point in the history
2023-3.1 envs
  • Loading branch information
mrakitin authored Sep 14, 2023
2 parents f1c6a8e + c0e8c8e commit f1518d7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ jobs:
echo "GHA_TOKEN=${GHA_TOKEN}" >> $GITHUB_ENV
- name: checkout the code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: conda-incubator/setup-miniconda@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
activate-environment: test
auto-update-conda: true
miniconda-version: "latest"
python-version: "3.10"

- name: pip-install dependencies
Expand All @@ -42,18 +40,18 @@ jobs:
set -vxeuo pipefail
#
# Artifacts from https://github.com/nsls2-conda-envs/nsls2-collection/actions/runs/6176876013
# Artifacts from https://github.com/nsls2-conda-envs/nsls2-collection/actions/runs/6186885203
#
# https://github.com/nsls2-conda-envs/nsls2-collection/suites/16137131189/artifacts/921432739
bash ${GITHUB_WORKSPACE}/download-artifacts.sh nsls2-collection 921432739 2023-3.0-py310
# https://github.com/nsls2-conda-envs/nsls2-collection/suites/16170163146/artifacts/923385127
bash ${GITHUB_WORKSPACE}/download-artifacts.sh nsls2-collection 923385127 2023-3.1-py310
#
# Artifacts from https://github.com/nsls2-conda-envs/nsls2-collection-tiled/actions/runs/6176873945
# Artifacts from https://github.com/nsls2-conda-envs/nsls2-collection-tiled/actions/runs/6186562672
#
# https://github.com/nsls2-conda-envs/nsls2-collection-tiled/suites/16137123471/artifacts/921430178
bash ${GITHUB_WORKSPACE}/download-artifacts.sh nsls2-collection-tiled 921430178 2023-3.0-py310-tiled
# https://github.com/nsls2-conda-envs/nsls2-collection-tiled/suites/16169125735/artifacts/923340119
bash ${GITHUB_WORKSPACE}/download-artifacts.sh nsls2-collection-tiled 923340119 2023-3.1-py310-tiled
- name: Upload artifacts to Zenodo
run: |
Expand Down
10 changes: 5 additions & 5 deletions test-upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ def create_new_version(

notes_urls = [
# non-tiled
"https://github.com/nsls2-conda-envs/nsls2-collection/pull/23",
"https://github.com/nsls2-conda-envs/nsls2-collection/actions/runs/6176876013",
"https://github.com/nsls2-conda-envs/nsls2-collection/pull/24",
"https://github.com/nsls2-conda-envs/nsls2-collection/actions/runs/6186885203",
# need this empty line to enforce line break on Zenodo:
"",
# tiled
"https://github.com/nsls2-conda-envs/nsls2-collection-tiled/pull/19",
"https://github.com/nsls2-conda-envs/nsls2-collection-tiled/actions/runs/6176873945",
"https://github.com/nsls2-conda-envs/nsls2-collection-tiled/pull/20",
"https://github.com/nsls2-conda-envs/nsls2-collection-tiled/actions/runs/6186562672",
]
notes_urls_strs = "<br>\n".join([f'<a href="{url}">{url}</a>'
if url else ""
Expand Down Expand Up @@ -174,7 +174,7 @@ def update_deposition_with_files(conceptrecid=None, files=None, token=None):
if __name__ == "__main__":

conceptrecid = "4057062"
version = "2023-3.0"
version = "2023-3.1"
token = os.environ["ZENODO_TOKEN"]

resp = create_new_version(
Expand Down

0 comments on commit f1518d7

Please sign in to comment.