Skip to content

Commit 7d40855

Browse files
committed
intregate latest actions files from main
1 parent c4f4209 commit 7d40855

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

.github/workflows/PR.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ on:
1212
- .github/workflows/PR.yml
1313

1414
env:
15-
POETRY_VERSION: 1.2.2
15+
POETRY_VERSION: 1.8.1
1616

1717
jobs:
1818
checks:
1919
runs-on: ubuntu-latest
2020
env:
21-
PYTHON_VERSION: 3.9 # Use latest
21+
PYTHON_VERSION: 3.11 # Use latest
2222
steps:
2323
- uses: actions/checkout@v2
2424
- uses: actions/setup-python@v2
@@ -32,7 +32,7 @@ jobs:
3232
- name: Check for lock changes
3333
run: |
3434
poetry lock --check
35-
- uses: actions/cache@v2
35+
- uses: actions/cache@v4
3636
with:
3737
path: ~/.cache/pypoetry/virtualenvs
3838
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
@@ -46,7 +46,7 @@ jobs:
4646
strategy:
4747
matrix:
4848
os: [macos-latest, windows-latest, ubuntu-latest]
49-
python-version: [3.8, 3.9, '3.10', 3.11, 3.12]
49+
python-version: [3.8, 3.9, '3.10', 3.11, 3.12, 3.13]
5050
steps:
5151
- uses: actions/checkout@v2
5252
- uses: actions/setup-python@v2
@@ -56,7 +56,7 @@ jobs:
5656
- uses: Gr1N/setup-poetry@v8
5757
with:
5858
poetry-version: ${{ env.POETRY_VERSION }}
59-
- uses: actions/cache@v2
59+
- uses: actions/cache@v4
6060
with:
6161
path: ~/.cache/pypoetry/virtualenvs
6262
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}

.github/workflows/Publish-Package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66

77
env:
88
# Versions are also listed in PR.yml
9-
POETRY_VERSION: 1.2.2
10-
PYTHON_VERSION: 3.9 # Use latest
9+
POETRY_VERSION: 1.8.1
10+
PYTHON_VERSION: 3.11 # Use latest
1111

1212
jobs:
1313
publish_package:
@@ -31,7 +31,7 @@ jobs:
3131
- name: Check for lock changes
3232
run: |
3333
poetry lock --check
34-
- uses: actions/cache@v2
34+
- uses: actions/cache@v4
3535
with:
3636
path: ~/.cache/pypoetry/virtualenvs
3737
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}

.github/workflows/Update-Poetry-Lock.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77

88
env:
99
# Versions are also listed in PR.yml
10-
POETRY_VERSION: 1.2.2
11-
PYTHON_VERSION: 3.9 # Use latest
10+
POETRY_VERSION: 1.8.1
11+
PYTHON_VERSION: 3.11 # Use latest
1212

1313
jobs:
1414
org-check:
@@ -56,7 +56,17 @@ jobs:
5656
git push --force --set-upstream origin ${{ steps.vars.outputs.branch_name }}
5757
# based on https://stackoverflow.com/a/73340290/8100990
5858
- name: Create Pull Request
59-
run: |
59+
run: |
60+
echo "Changed files:"
61+
git diff --name-only HEAD origin/main --exit-code
62+
63+
if [[ $? ]]; then
64+
echo "Changes detected, creating PR"
65+
else
66+
echo "No changes detected, exiting"
67+
exit 0
68+
fi
69+
6070
gh pr create -B main -H ${{ steps.vars.outputs.branch_name }} --title 'Update poetry lock and reformat' --body '# Update Poetry Lock
6171
6272
Ran:

0 commit comments

Comments
 (0)