Skip to content

Commit

Permalink
update to 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquelynsmale committed Mar 20, 2024
1 parent 95ea4c5 commit a16bf72
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 12 deletions.
48 changes: 36 additions & 12 deletions .github/workflows/call-version.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,41 @@
name: Test
name: Call version info

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_call:
inputs:
python_version:
required: false
default: '3.8'
type: string
outputs:
version:
value: ${{ jobs.version_info.outputs.version }}
version_tag:
value: ${{ jobs.version_info.outputs.version_tag }}


jobs:
call-version-info-workflow:
# Docs: https://github.com/ASFHyP3/actions
uses: ASFHyP3/actions/.github/workflows/[email protected]
version_info:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.set_outputs.outputs.version }}
version_tag: ${{ steps.set_outputs.outputs.version_tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
create-args: >-
python=${{ inputs.python_version }}
- name: set outputs
id: set_outputs
shell: bash -l {0}
run: |
export SDIST_VERSION=$(python -m setuptools_scm)
echo "version=${SDIST_VERSION}" >> $GITHUB_OUTPUT
echo "version_tag=${SDIST_VERSION/+/_}" >> $GITHUB_OUTPUT
echo "Version number: ${SDIST_VERSION}"
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Run pytest

on:
workflow_call:
inputs:
Expand Down

0 comments on commit a16bf72

Please sign in to comment.