-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from tardis4500/feature/python-3.12
Upgrade to Python 3.12.
- Loading branch information
Showing
11 changed files
with
107 additions
and
151 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
name: Git Stream Build | ||
run-name: Git Stream Build - ${{ github.run_id }} | ||
name: Git Stream Build and Release | ||
run-name: Git Stream Build and Release - ${{ github.run_id }} | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- release/* | ||
- feature/* | ||
pull_request: | ||
branches: | ||
- main | ||
- release/* | ||
- feature/* | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
ARTIFACTS_DIR: artifacts | ||
GH_TOKEN: ${{ github.token }} | ||
VJER_ENV: development | ||
|
||
jobs: | ||
test: | ||
uses: tardis4500/shared-actions/.github/workflows/vjer.yml@main | ||
|
@@ -28,16 +37,16 @@ jobs: | |
- macos-latest | ||
- windows-latest | ||
python-version: | ||
- "3.11" | ||
- "3.12" | ||
- "3.13" | ||
|
||
build: | ||
needs: test | ||
uses: tardis4500/shared-actions/.github/workflows/vjer.yml@main | ||
with: | ||
action: build | ||
os: ubuntu-latest | ||
python-version: "3.11" | ||
python-version: "3.12" | ||
use-flit: true | ||
|
||
install-test: | ||
|
@@ -54,5 +63,79 @@ jobs: | |
- macos-latest | ||
- windows-latest | ||
python-version: | ||
- "3.11" | ||
- "3.12" | ||
- "3.13" | ||
|
||
pre_release: | ||
needs: install-test | ||
if: (github.event_name != 'pull_request') && ((github.ref_name == 'main') || startsWith(github.ref_name, 'release/')) | ||
permissions: | ||
contents: write | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
environment: pre_release | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
- name: Setup Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "pip" | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
- name: Install vjer | ||
run: pip install vjer | ||
- name: Prepare Git | ||
run: | | ||
git config user.name "${{ github.triggering_actor }}" | ||
git config user.email "${{ github.triggering_actor }}@users.noreply.github.com" | ||
git pull | ||
- name: Publish to Test PyPi | ||
uses: pypa/[email protected] | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
packages-dir: ${{ env.ARTIFACTS_DIR }} | ||
- name: Run post-publish steps | ||
run: vjer pre_release | ||
|
||
release: | ||
needs: pre_release | ||
if: (github.event_name != 'pull_request') && ((github.ref_name == 'main') || startsWith(github.ref_name, 'release/')) | ||
permissions: | ||
contents: write | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
environment: release | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
- name: Setup Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "pip" | ||
- name: Install vjer | ||
run: pip install vjer | ||
- name: Prepare Git | ||
run: | | ||
git config user.name "${{ github.triggering_actor }}" | ||
git config user.email "${{ github.triggering_actor }}@users.noreply.github.com" | ||
git pull | ||
- name: Run post-publish steps | ||
run: vjer release | ||
- name: Publish to PyPi | ||
uses: pypa/[email protected] | ||
with: | ||
packages-dir: ${{ env.ARTIFACTS_DIR }} | ||
- name: Upload released artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.ARTIFACTS_DIR }}-released | ||
path: ${{ env.ARTIFACTS_DIR }} | ||
|
||
# cSpell:ignore pypa |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: 2 | ||
|
||
python: | ||
version: "3.11" | ||
version: "3.12" |
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
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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