Skip to content

Commit 1477fcd

Browse files
committed
ci: add 3.13 to checks
1 parent dbf989d commit 1477fcd

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.DS_Store
2+
.ruff_cache/
3+
.coverage
4+
accounts/
5+
results-raw/
6+
results-parsed/
7+
accounts.db*
8+
data/
9+
data_media/
10+
dist/

.github/workflows/ci.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.10", "3.11", "3.12"]
15+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1616
steps:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-python@v5
@@ -22,18 +22,15 @@ jobs:
2222
- name: install dependencies
2323
run: pip install -e .[dev]
2424

25-
- name: lint
26-
run: make lint
27-
28-
- name: test
29-
run: make test
25+
- run: make lint
26+
- run: make test
3027

3128
release:
29+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
3230
runs-on: ubuntu-latest
31+
needs: test
3332
permissions:
3433
contents: write
35-
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
36-
needs: test
3734
steps:
3835
- uses: actions/checkout@v4
3936
- uses: actions/setup-python@v5

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ install:
66
pip install -e .[dev]
77
python -m build
88

9+
build:
10+
python -m build --sdist --wheel --outdir dist/ .
11+
912
lint:
1013
@# https://docs.astral.sh/ruff/settings/#sorting-imports
1114
@ruff check --select I --fix .
@@ -39,7 +42,7 @@ test-py-matrix:
3942
@make test-py v=3.10
4043
@make test-py v=3.11
4144
@make test-py v=3.12
42-
@make test-py v=3.13-rc
45+
@make test-py v=3.13
4346

4447
test-sq-matrix:
4548
@# https://www.sqlite.org/chronology.html
@@ -70,7 +73,3 @@ update-mocks:
7073
twscrape list_timeline --raw --limit 10 1494877848087187461 | jq > ./tests/mocked-data/raw_list_timeline.json
7174
@# twscrape favoriters --raw --limit 10 1649191520250245121 | jq > ./tests/mocked-data/raw_favoriters.json
7275
@# twscrape liked_tweets --raw --limit 10 2244994945 | jq > ./tests/mocked-data/raw_likes.json
73-
74-
x:
75-
twscrape tweet_details --raw 1790441814857826439 | jq > ./tests/mocked-data/card_broadcast.json
76-
twscrape tweet_details --raw 1789054061729173804 | jq > ./tests/mocked-data/card_audiospace.json

0 commit comments

Comments
 (0)