Skip to content

Commit b44ea44

Browse files
committed
Update GitHub workflows to use newer versions of actions and Python
1 parent a1f0bee commit b44ea44

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

.github/workflows/auto_merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
auto-merge:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- uses: ahmadnassri/action-dependabot-auto-merge@v2
1212
with:
1313
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE }}

.github/workflows/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@master
12-
- name: Set up Python 3.8
13-
uses: actions/setup-python@v2.2.2
11+
- uses: actions/checkout@v4
12+
- name: Set up Python 3.13
13+
uses: actions/setup-python@v5
1414
with:
15-
python-version: 3.8
15+
python-version: 3.13
1616
- name: Install dependencies
1717
run: make install-test
1818
- name: Install mkdocs

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: release
22

3-
on: push
3+
on:
4+
release:
5+
types: [published]
46

57
jobs:
68
publish-pypi:

.github/workflows/test.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: test
22

3-
on: [push, pull_request]
3+
on: push
44

55
jobs:
66
lint:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1010
- name: Set up Python
11-
uses: actions/setup-python@v2.2.2
11+
uses: actions/setup-python@v5
1212
with:
13-
python-version: 3.8
13+
python-version: 3.13
1414
- name: Install dependencies
1515
run: make install-test
1616
- name: Lint
@@ -20,11 +20,11 @@ jobs:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
python-version: [3.7, 3.8, 3.9, '3.10']
23+
python-version: ['3.10', '3.11', '3.12', '3.13']
2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v4
2626
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v2.2.2
27+
uses: actions/setup-python@v5
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030
- name: Install dependencies
@@ -35,17 +35,17 @@ jobs:
3535
coverage:
3636
runs-on: ubuntu-latest
3737
steps:
38-
- uses: actions/checkout@master
38+
- uses: actions/checkout@v4
3939
- name: Setup Python
40-
uses: actions/setup-python@v2.2.2
40+
uses: actions/setup-python@v5
4141
with:
42-
python-version: 3.8
42+
python-version: 3.13
4343
- name: Install dependencies
4444
run: make install-test
4545
- name: Generate coverage report
4646
run: pytest --cov-report=xml
4747
- name: Upload coverage to Codecov
48-
uses: codecov/codecov-action@v1.5.0
48+
uses: codecov/codecov-action@v5
4949
with:
5050
file: ./coverage.xml
5151
flags: unittests

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
include_package_data=True,
2323
package_data=dict(facturapi=['py.typed']),
2424
python_requires='>=3.10',
25-
install_requires=['requests>=2.32.0,<3.0.0'],
25+
install_requires=['httpx>=0.28.0,<1.0.0', 'pydantic>=2.10.0,<3.0.0'],
2626
classifiers=[
2727
'Programming Language :: Python :: 3',
2828
'Programming Language :: Python :: 3.10',

0 commit comments

Comments
 (0)