Этот коммит содержится в:
Vlad Pronsky 2025-01-01 17:41:47 +02:00
родитель dbf989d58f
Коммит 1477fcd13f
3 изменённых файлов: 19 добавлений и 13 удалений

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 поставляемый
Просмотреть файл

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
@ -22,18 +22,15 @@ jobs:
- name: install dependencies
run: pip install -e .[dev]
- name: lint
run: make lint
- name: test
run: make test
- run: make lint
- run: make test
release:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-latest
needs: test
permissions:
contents: write
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

Просмотреть файл

@ -6,6 +6,9 @@ install:
pip install -e .[dev]
python -m build
build:
python -m build --sdist --wheel --outdir dist/ .
lint:
@# https://docs.astral.sh/ruff/settings/#sorting-imports
@ruff check --select I --fix .
@ -39,7 +42,7 @@ test-py-matrix:
@make test-py v=3.10
@make test-py v=3.11
@make test-py v=3.12
@make test-py v=3.13-rc
@make test-py v=3.13
test-sq-matrix:
@# 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 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
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