-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): move Python version into a file (#230)
We were already specifying a Python version for setup-python actions in this repo, but this moves the Python version declaration to an external file. This isn't urgent but it does make it easier to keep the Python version coordinated across CI workflows and it also enables developers to know what version of Python is recommended for local development. To come out of draft, this PR needs to include README updates that document the existence and potential usage of the `.python-version` file.
- Loading branch information
Showing
6 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ name: Semantic Release to GitHub and Ansible Galaxy | |
on: | ||
workflow_dispatch: null | ||
|
||
env: | ||
COLLECTION_PATH: .ansible/collections/ansible_collections/equinix/cloud | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -15,7 +19,7 @@ jobs: | |
- name: checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: .ansible/collections/ansible_collections/equinix/cloud | ||
path: ${{ env.COLLECTION_PATH }} | ||
fetch-depth: 0 | ||
ssh-key: ${{ secrets.DEPLOY_KEY }} | ||
|
||
|
@@ -28,15 +32,15 @@ jobs: | |
- name: setup python 3 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
python-version-file: ${{ env.COLLECTION_PATH }}/.python-version | ||
|
||
- name: install dependencies | ||
run: pip3 install -r requirements-dev.txt -r requirements.txt | ||
|
||
- name: Do GitHub release | ||
uses: cycjimmy/semantic-release-action@v4 | ||
with: | ||
working_directory: .ansible/collections/ansible_collections/equinix/cloud | ||
working_directory: ${{ env.COLLECTION_PATH }} | ||
semantic_version: 19.0.5 | ||
extra_plugins: | | ||
@semantic-release/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters