Skip to content

Commit 9271e8b

Browse files
authored
Merge pull request #216 from unthreaded/feature/upgrade-python
NOGH: Upgrade python and a number of dependencies
2 parents dd31370 + a19bb20 commit 9271e8b

File tree

6 files changed

+22
-20
lines changed

6 files changed

+22
-20
lines changed

.github/workflows/actionlint.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ on:
88
# https://github.com/rhysd/actionlint/blob/main/README.md
99

1010
jobs:
11-
lint:
11+
actionlint:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v2
16-
- name: Install actionlint
14+
- uses: actions/checkout@v4
15+
- name: Download actionlint
16+
id: get_actionlint
1717
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
18-
- name: run
19-
run: ./actionlint
18+
shell: bash
19+
- name: Check workflow files
20+
run: ${{ steps.get_actionlint.outputs.executable }} -color
21+
shell: bash

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
# We want the oldest possible version of MacOS for backwards compatibility
19-
os: [ubuntu-latest, macos-11, windows-latest]
19+
os: [ubuntu-latest, macos-13, windows-latest]
2020

2121
steps:
22-
- uses: actions/checkout@v1
23-
- name: Set up Python 3.7
24-
uses: actions/setup-python@v1
22+
- uses: actions/checkout@v5
23+
- name: Set up Python
24+
uses: actions/setup-python@v5
2525
with:
26-
python-version: 3.7
26+
python-version: 3.13
2727
- name: Install dependencies
2828
run: |
2929
python scripts/os_specific_requirements.py
@@ -45,8 +45,8 @@ jobs:
4545
python scripts/package.py
4646
- uses: actions/upload-artifact@master
4747
with:
48-
name: githooks
49-
path: dist/
48+
name: ${{ runner.os }}
49+
path: ./dist/*
5050
- name: Integration
5151
run: |
5252
pytest src/integration

.github/workflows/tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Tag
22

33
on:
44
pull_request:
5-
types: closed
5+
types: [closed]
66

77
jobs:
88
build:

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
PyInstaller==5.13.2
2-
pytest==7.4.4
3-
pylint==2.17.6
1+
PyInstaller==6.15.0
2+
pytest==8.4.1
3+
pylint==3.3.8
44
codecov==2.1.13
5-
pytest-cov==4.1.0
5+
pytest-cov==6.2.1

scripts/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
OS_ALIAS = "mac"
2121

2222
EXE_NAME: str = "commit-msg"
23-
EXE_FILE_FOLDER = os.path.join('dist', OS_ALIAS)
23+
EXE_FILE_FOLDER = 'dist'
2424

2525
# Hidden import mends PyInstaller moduleNotFound errors
2626
PyInstaller.__main__.run([

src/integration/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TestIntegration(unittest.TestCase):
2323

2424
def setUp(self):
2525
# Dist should only have one other folder in it - grab that one
26-
self.abs_dist_path = os.path.join('dist', os.listdir('dist')[0])
26+
self.abs_dist_path = 'dist'
2727

2828
# Convert relative path to absolute
2929
self.abs_dist_path = os.path.abspath(self.abs_dist_path)

0 commit comments

Comments
 (0)