Skip to content

Commit

Permalink
[BUGFIX] Nuked pipenv
Browse files Browse the repository at this point in the history
  • Loading branch information
egordm committed Dec 10, 2021
1 parent 6565028 commit 4ab2377
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
python-version: 3.9
- name: Setup Pipenv
run: make setup
run: make setup-ci
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Publish docs
run: mkdocs gh-deploy --clean --force
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
with:
python-version: 3.9
- name: Setup Pipenv
run: make setup
run: make setup-ci
- name: Create test config
run: |
touch config.yml
pipenv run config
make config
sed -i "s/<notion token>/${{ secrets.TEST_NOTION_TOKEN }}/g" config.yml
sed -i "s/<notion unofficial token_v2>/${{ secrets.TEST_NOTION_TOKEN_V2 }}/g" config.yml
sed -i "s/<zotero token>/${{ secrets.TEST_ZOTERO_TOKEN }}/g" config.yml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Setup Pipenv
run: make setup
run: make setup-ci
- name: Create test config
run: |
touch config.yml
pipenv run config
make config
sed -i "s/<notion token>/${{ secrets.TEST_NOTION_TOKEN }}/g" config.yml
sed -i "s/<notion unofficial token_v2>/${{ secrets.TEST_NOTION_TOKEN_V2 }}/g" config.yml
sed -i "s/<zotero token>/${{ secrets.TEST_ZOTERO_TOKEN }}/g" config.yml
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ setup-ci: setup
pip install -r requirements-dev.txt

clean:
rm -rf dist build requirements.txt requirements-dev.txt notionsci.egg-info
rm -rf dist build notionsci.egg-info

config:
python -m notionsci config -f config.yml

#---- Packaging ----

Expand Down
2 changes: 1 addition & 1 deletion notionsci/config/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
DEFAULT_PROFLE = "default"
OVERRIDE_CONFIG_NAME = "config.yml"

TEMPLATE_ZOTERO = 'https://efficacious-alarm-7cc.notion.site/Zotero-Library-908bf67ef61048b79a1a10dfa5826302'
TEMPLATE_ZOTERO = 'https://efficacious-alarm-7cc.notion.site/Zotero-Library-36f83fd853994420a53d818a5b67da3e'

DEV_TESTS_PAGE = "https://www.notion.so/NotionSci-Tests-22ecab6188d147ef83fa455e2694395b"
2 changes: 1 addition & 1 deletion notionsci/connections/notion/structures/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def to_markdown(self, context: MarkdownContext) -> str:
@dataclass_dict_convert(dict_letter_case=snakecase)
@dataclass
class ChildPageBlock:
text: str
title: str


@dataclass
Expand Down

0 comments on commit 4ab2377

Please sign in to comment.