Skip to content

Commit

Permalink
Update workflows with python version var
Browse files Browse the repository at this point in the history
  • Loading branch information
altheaden committed Jan 16, 2025
1 parent 8a86130 commit d3a8bff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docs_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
release:
types: [published]

env:
PYTHON_VERSION: "3.10"

jobs:
publish-docs:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -39,14 +42,14 @@ jobs:
channels: conda-forge
channel-priority: strict
auto-update-conda: true
python-version: ${{ matrix.python-version }}
python-version: ${{ env.PYTHON_VERSION }}

- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Install mache
run: |
git config --global url."https://github.com/".insteadOf "[email protected]:"
conda create -n mache_dev --file spec-file.txt \
python=${{ matrix.python-version }}
python=${{ env.PYTHON_VERSION }}
conda activate mache_dev
python -m pip install -vv --no-deps --no-build-isolation -e .
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pre_commit_update_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:

env:
UP_TO_DATE: false
PYTHON_VERSION: "3.10"

jobs:
auto-update:
Expand All @@ -22,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: ${{ env.PYTHON_VERSION }}

- name: Install pre-commit
run: pip install pre-commit
Expand Down

0 comments on commit d3a8bff

Please sign in to comment.