notion_delete_database_entries_test #287
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: notion_delete_database_entries_test | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 * * *' # Runs at 8 AM Singapore time (00:00 UTC) daily | |
| env: | |
| BUILD_PYTHON_VERSION: "3.14" | |
| BUILD_POETRY_VERSION: "2.4.1" | |
| BUILD_SETUPTOOLS_VERSION: "82.0.1" | |
| BUILD_POETRY_PLUGIN_EXPORT_VERSION: "1.10.0" | |
| PACKAGE_NAME: csv2notion_neo | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| POETRY_VIRTUALENVS_CREATE: false | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python ${{ env.BUILD_PYTHON_VERSION }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ env.BUILD_PYTHON_VERSION }} | |
| - name: Install setuptools | |
| run: pip install setuptools==${{ env.BUILD_SETUPTOOLS_VERSION }} | |
| - name: Set up Poetry ${{ env.BUILD_POETRY_VERSION }} | |
| uses: abatilo/actions-poetry@v3.0.2 | |
| with: | |
| poetry-version: ${{ env.BUILD_POETRY_VERSION }} | |
| poetry-plugins: poetry-plugin-export==${{ env.BUILD_POETRY_PLUGIN_EXPORT_VERSION }} | |
| - name: Cache Poetry dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| .venv | |
| ~/.cache/pypoetry | |
| key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}- | |
| - name: Install the necessary libraries to run csv2notion_neo | |
| run: poetry install --no-root | |
| - name: Run tests | |
| env: | |
| POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} | |
| NOTION_WORKSPACE: ${{ secrets.NOTION_WORKSPACE }} | |
| NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} | |
| NOTION_URL: ${{ secrets.NOTION_URL }} | |
| run: pytest tests/test_delete_database_entries.py -v -s |