Skip to content

Commit d6e219d

Browse files
Merge branch 'main' into main
2 parents 873f8d5 + fa4e6a9 commit d6e219d

34 files changed

+2141
-744
lines changed

.bumpversion.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[bumpversion]
2+
current_version = 1.2.2
3+
commit = True
4+
tag = True
5+
6+
[bumpversion:file:src/dotenv/version.py]

.github/workflows/release.yml

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,43 @@ on:
55
types: [created]
66

77
jobs:
8-
deploy:
8+
publish:
99
runs-on: ubuntu-latest
10+
# Specifying a GitHub environment is optional, but strongly encouraged
11+
environment: release
12+
permissions:
13+
# IMPORTANT: this permission is mandatory for trusted publishing
14+
id-token: write
15+
# Required for pushing to gh-pages branch
16+
contents: write
17+
1018
steps:
11-
- uses: actions/checkout@v4
12-
- name: Set up Python
13-
uses: actions/setup-python@v5
14-
with:
15-
python-version: '3.x'
16-
- name: Install dependencies
17-
run: |
18-
python -m pip install --upgrade pip
19-
pip install setuptools wheel twine
20-
- name: Build and publish
21-
env:
22-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
23-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
24-
run: |
25-
make release
26-
27-
- name: Publish Documentation
28-
run: |
29-
pip install -r requirements-docs.txt
30-
pip install -e .
31-
mkdocs gh-deploy --force
19+
- uses: actions/checkout@v6
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v6
23+
with:
24+
python-version: "3.x"
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install build
30+
31+
- name: Build package distributions
32+
run: make sdist
33+
34+
- name: Publish package distributions to PyPI
35+
uses: pypa/gh-action-pypi-publish@release/v1
36+
37+
- name: Build Documentation
38+
run: |
39+
pip install -r requirements-docs.txt
40+
pip install -e .
41+
mkdocs build
42+
43+
- name: Deploy to GitHub Pages
44+
uses: peaceiris/actions-gh-pages@v4
45+
with:
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
publish_dir: ./site

.github/workflows/test.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
name: Run Tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
412

513
jobs:
614
test:
715
runs-on: ${{ matrix.os }}
16+
timeout-minutes: 15
817

918
strategy:
1019
fail-fast: false
@@ -13,13 +22,19 @@ jobs:
1322
os:
1423
- ubuntu-latest
1524
python-version:
16-
["3.9", "3.10", "3.11", "3.12", "3.13", pypy3.9, pypy3.10]
25+
["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t", pypy3.11]
26+
include:
27+
# Windows: Test lowest and highest supported Python versions
28+
- os: windows-latest
29+
python-version: "3.10"
30+
- os: windows-latest
31+
python-version: "3.14"
1732

1833
steps:
19-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@v6
2035

2136
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v5
37+
uses: actions/setup-python@v6
2338
with:
2439
python-version: ${{ matrix.python-version }}
2540
allow-prereleases: true

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.12.0
4+
hooks:
5+
# Run the linter.
6+
- id: ruff
7+
# Run the formatter.
8+
- id: ruff-format

0 commit comments

Comments
 (0)