зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 21:16:25 +02:00
ci: add 3.13 to checks
Этот коммит содержится в:
родитель
dbf989d58f
Коммит
1477fcd13f
10
.dockerignore
Обычный файл
10
.dockerignore
Обычный файл
@ -0,0 +1,10 @@
|
|||||||
|
.DS_Store
|
||||||
|
.ruff_cache/
|
||||||
|
.coverage
|
||||||
|
accounts/
|
||||||
|
results-raw/
|
||||||
|
results-parsed/
|
||||||
|
accounts.db*
|
||||||
|
data/
|
||||||
|
data_media/
|
||||||
|
dist/
|
||||||
13
.github/workflows/ci.yml
поставляемый
13
.github/workflows/ci.yml
поставляемый
@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.10", "3.11", "3.12"]
|
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
@ -22,18 +22,15 @@ jobs:
|
|||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: pip install -e .[dev]
|
run: pip install -e .[dev]
|
||||||
|
|
||||||
- name: lint
|
- run: make lint
|
||||||
run: make lint
|
- run: make test
|
||||||
|
|
||||||
- name: test
|
|
||||||
run: make test
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: test
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
||||||
needs: test
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
|
|||||||
9
Makefile
9
Makefile
@ -6,6 +6,9 @@ install:
|
|||||||
pip install -e .[dev]
|
pip install -e .[dev]
|
||||||
python -m build
|
python -m build
|
||||||
|
|
||||||
|
build:
|
||||||
|
python -m build --sdist --wheel --outdir dist/ .
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@# https://docs.astral.sh/ruff/settings/#sorting-imports
|
@# https://docs.astral.sh/ruff/settings/#sorting-imports
|
||||||
@ruff check --select I --fix .
|
@ruff check --select I --fix .
|
||||||
@ -39,7 +42,7 @@ test-py-matrix:
|
|||||||
@make test-py v=3.10
|
@make test-py v=3.10
|
||||||
@make test-py v=3.11
|
@make test-py v=3.11
|
||||||
@make test-py v=3.12
|
@make test-py v=3.12
|
||||||
@make test-py v=3.13-rc
|
@make test-py v=3.13
|
||||||
|
|
||||||
test-sq-matrix:
|
test-sq-matrix:
|
||||||
@# https://www.sqlite.org/chronology.html
|
@# https://www.sqlite.org/chronology.html
|
||||||
@ -70,7 +73,3 @@ update-mocks:
|
|||||||
twscrape list_timeline --raw --limit 10 1494877848087187461 | jq > ./tests/mocked-data/raw_list_timeline.json
|
twscrape list_timeline --raw --limit 10 1494877848087187461 | jq > ./tests/mocked-data/raw_list_timeline.json
|
||||||
@# twscrape favoriters --raw --limit 10 1649191520250245121 | jq > ./tests/mocked-data/raw_favoriters.json
|
@# twscrape favoriters --raw --limit 10 1649191520250245121 | jq > ./tests/mocked-data/raw_favoriters.json
|
||||||
@# twscrape liked_tweets --raw --limit 10 2244994945 | jq > ./tests/mocked-data/raw_likes.json
|
@# twscrape liked_tweets --raw --limit 10 2244994945 | jq > ./tests/mocked-data/raw_likes.json
|
||||||
|
|
||||||
x:
|
|
||||||
twscrape tweet_details --raw 1790441814857826439 | jq > ./tests/mocked-data/card_broadcast.json
|
|
||||||
twscrape tweet_details --raw 1789054061729173804 | jq > ./tests/mocked-data/card_audiospace.json
|
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user