Skip to content

Commit 4b71e1b

Browse files
RustyBowerclaude
andcommitted
Bump version to 2.1.0 and add tests to CI
- Add pytest step to python-tests.yml (was missing) - Add test job to python-publish.yml that must pass before PyPI upload - Bump version to 2.1.0 for Tomorrow.io provider feature Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2274e61 commit 4b71e1b

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,31 @@ permissions:
99
contents: read
1010

1111
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ['3.8', '3.12']
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
python -m pip install pytest requests-mock
30+
python -m pip install -e .
31+
32+
- name: Run tests
33+
run: pytest tests/ -v
34+
1235
build:
36+
needs: test
1337
runs-on: ubuntu-latest
1438
steps:
1539
- uses: actions/checkout@v4

.github/workflows/python-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@ jobs:
2525
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
28-
python -m pip install flake8 pytest
28+
python -m pip install flake8 pytest requests-mock
2929
python -m pip install -e .
3030
3131
- name: Lint with flake8
3232
run: |
3333
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3434
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
35+
36+
- name: Run tests
37+
run: pytest tests/ -v

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespaces = false
88

99
[project]
1010
name = "sopel-weather"
11-
version = "2.0.0"
11+
version = "2.1.0"
1212
description = "A weather lookup plugin for Sopel IRC bots"
1313
readme = "README.md"
1414
license = {text = "MIT"}

0 commit comments

Comments
 (0)