id,seq,job,repo,uses,name,with,run,env,if 138900,7,27878,140912432,codecov/codecov-action@v1,Upload coverage report,"{""token"": ""${{ secrets.CODECOV_TOKEN }}"", ""file"": ""coverage.xml""}",,, 138901,1,27879,140912432,actions/checkout@v3,,,,, 138902,2,27879,140912432,actions/setup-python@v4,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}""}",,, 138903,3,27879,140912432,actions/cache@v3,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-pip-\n""}",,, 138904,4,27879,140912432,,Install dependencies,,"pip install -e '.[test,mypy,flake8]' ",, 138905,5,27879,140912432,,Optionally install tui dependencies (not 3.7),,pip install -e '.[tui]',,matrix.python-version != '3.7' 138906,6,27879,140912432,,Optionally install numpy,,pip install numpy,,matrix.numpy == 1 138907,7,27879,140912432,,Install SpatiaLite,,sudo apt-get install libsqlite3-mod-spatialite,,matrix.os == 'ubuntu-latest' 138908,8,27879,140912432,,On macOS with Python 3.10 test with sqlean.py,,pip install sqlean.py sqlite-dump,,matrix.os == 'macos-latest' && matrix.python-version == '3.10' 138909,9,27879,140912432,,Build extension for --load-extension test,,(cd tests && gcc ext.c -fPIC -shared -o ext.so && ls -lah),,matrix.os == 'ubuntu-latest' 138910,10,27879,140912432,,Run tests,,"pytest -v ",, 138911,11,27879,140912432,,run mypy,,mypy sqlite_utils tests,, 138912,12,27879,140912432,,run flake8 if Python 3.8 or higher,,flake8,,matrix.python-version >= 3.8 138913,13,27879,140912432,,Check formatting,,black . --check,, 138914,14,27879,140912432,,Check if cog needs to be run,,"cog --check README.md docs/*.rst ",,matrix.python-version != '3.7' 138666,1,27830,197431109,actions/checkout@v2,,,,, 138667,2,27830,197431109,actions/setup-python@v2,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}""}",,, 138668,3,27830,197431109,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-pip-\n""}",,, 138669,4,27830,197431109,,Install dependencies,,"pip install -e '.[test]' ",, 138670,5,27830,197431109,,Run tests,,"pytest -v ",, 138671,1,27831,197431109,actions/checkout@v2,,,,, 138672,2,27831,197431109,actions/setup-python@v2,Set up Python,"{""python-version"": ""3.8""}",,, 138673,3,27831,197431109,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-publish-pip-\n""}",,, 138674,4,27831,197431109,,Install dependencies,,"pip install setuptools wheel twine ",, 138675,5,27831,197431109,,Publish,,"python setup.py sdist bdist_wheel twine upload dist/* ","{""TWINE_USERNAME"": ""__token__"", ""TWINE_PASSWORD"": ""${{ secrets.PYPI_TOKEN }}""}", 138676,1,27832,197431109,actions/checkout@v2,,,,, 138677,2,27832,197431109,actions/setup-python@v2,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}""}",,, 138678,3,27832,197431109,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-pip-\n""}",,, 138679,4,27832,197431109,,Install dependencies,,"pip install -e '.[test]' ",, 138680,5,27832,197431109,,Run tests,,"pytest -v ",, 138745,1,27845,197882382,actions/checkout@v2,,,,, 138746,2,27845,197882382,actions/setup-python@v2,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}""}",,, 138747,3,27845,197882382,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-pip-\n""}",,, 138748,4,27845,197882382,,Install dependencies,,"pip install -e '.[test]' ",, 138749,5,27845,197882382,,Run tests,,"pytest ",, 138750,1,27846,197882382,actions/checkout@v2,,,,, 138751,2,27846,197882382,actions/setup-python@v2,Set up Python,"{""python-version"": ""3.9""}",,, 138752,3,27846,197882382,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-publish-pip-\n""}",,, 138753,4,27846,197882382,,Install dependencies,,"pip install setuptools wheel twine ",, 138754,5,27846,197882382,,Publish,,"python setup.py sdist bdist_wheel twine upload dist/* ","{""TWINE_USERNAME"": ""__token__"", ""TWINE_PASSWORD"": ""${{ secrets.PYPI_TOKEN }}""}", 138755,1,27847,197882382,actions/checkout@v2,,,,, 138756,2,27847,197882382,actions/setup-python@v2,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}""}",,, 138757,3,27847,197882382,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-pip-\n""}",,, 138758,4,27847,197882382,,Install dependencies,,"pip install -e '.[test]' ",, 138759,5,27847,197882382,,Run tests,,"pytest ",, 138772,1,27851,205429375,actions/checkout@v3,,,,, 138773,2,27851,205429375,actions/setup-python@v4,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}"", ""cache"": ""pip"", ""cache-dependency-path"": ""setup.py""}",,, 138774,3,27851,205429375,,Install dependencies,,"pip install -e '.[test]' ",, 138775,4,27851,205429375,,Run tests,,"pytest ",, 138776,1,27852,205429375,actions/checkout@v3,,,,, 138777,2,27852,205429375,actions/setup-python@v4,Set up Python,"{""python-version"": ""3.11"", ""cache"": ""pip"", ""cache-dependency-path"": ""setup.py""}",,, 138778,3,27852,205429375,,Install dependencies,,"pip install setuptools wheel twine ",, 138779,4,27852,205429375,,Publish,,"python setup.py sdist bdist_wheel twine upload dist/* ","{""TWINE_USERNAME"": ""__token__"", ""TWINE_PASSWORD"": ""${{ secrets.PYPI_TOKEN }}""}", 138780,1,27853,205429375,actions/checkout@v3,,,,, 138781,2,27853,205429375,actions/setup-python@v4,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}"", ""cache"": ""pip"", ""cache-dependency-path"": ""setup.py""}",,, 138782,3,27853,205429375,,Install dependencies,,"pip install -e '.[test]' ",, 138783,4,27853,205429375,,Run tests,,"pytest ",, 138784,1,27854,206156866,actions/checkout@v2,,,,, 138785,2,27854,206156866,actions/setup-python@v2,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}""}",,, 138786,3,27854,206156866,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-pip-\n""}",,, 138787,4,27854,206156866,,Install dependencies,,"pip install -e '.[test]' ",, 138788,5,27854,206156866,,Run tests,,"pytest ",, 138789,1,27855,206156866,actions/checkout@v2,,,,, 138790,2,27855,206156866,actions/setup-python@v2,Set up Python,"{""python-version"": ""3.9""}",,, 138791,3,27855,206156866,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-publish-pip-\n""}",,, 138792,4,27855,206156866,,Install dependencies,,"pip install setuptools wheel twine ",, 138793,5,27855,206156866,,Publish,,"python setup.py sdist bdist_wheel twine upload dist/* ","{""TWINE_USERNAME"": ""__token__"", ""TWINE_PASSWORD"": ""${{ secrets.PYPI_TOKEN }}""}", 138794,1,27856,206156866,actions/checkout@v2,Check out repo,,,, 138795,2,27856,206156866,,Update TOC,,npx markdown-toc README.md -i,, 138796,3,27856,206156866,,Commit and push if README changed,,"git diff git config --global user.email ""readme-bot@example.com"" git config --global user.name ""README-bot"" git diff --quiet || (git add README.md && git commit -m ""Updated README"") git push",, 138797,1,27857,206156866,actions/checkout@v2,,,,, 138798,2,27857,206156866,actions/setup-python@v2,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}""}",,, 138799,3,27857,206156866,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-pip-\n""}",,, 138800,4,27857,206156866,,Install dependencies,,"pip install -e '.[test]' ",, 138801,5,27857,206156866,,Run tests,,"pytest ",, 138701,1,27837,207052882,actions/checkout@v2,Check out repo,,,, 138702,2,27837,207052882,actions/setup-python@v1,Set up Python,"{""python-version"": ""3.9""}",,, 138703,3,27837,207052882,actions/cache@v1,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-pip-\n""}",,, 138704,4,27837,207052882,,Install Python dependencies,,"python -m pip install --upgrade pip pip install sqlite-utils>=3.1 sqlite-utils --version pip install -e . pip install datasette pip install bs4 ",, 138705,5,27837,207052882,,Create auth.json,,"echo ""{\""github_personal_token\"": \""$GITHUB_ACCESS_TOKEN\""}"" > auth.json ","{""GITHUB_ACCESS_TOKEN"": ""${{ secrets.GH_TOKEN }}""}", 138706,6,27837,207052882,,Fetch previous copy of database,,"# So we can keep track of when we first saw each dependent repo wget https://github-to-sqlite.dogsheep.net/github.db",,"!contains(github.event.head_commit.message, 'REFRESH_DB')" 138707,7,27837,207052882,,Fetch the repos,,"github-to-sqlite repos github.db dogsheep sqlite-utils tables --counts github.db",, 138708,8,27837,207052882,,"Fetch releases, commits, issues, contributors",,"sqlite-utils github.db ""select full_name from repos where owner = 53015001 union select 'simonw/datasette' as full_name union select 'simonw/sqlite-utils' as full_name"" \ --csv --no-headers | while read repo; do github-to-sqlite releases \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite commits \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite tags \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite contributors \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite issues \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite pull-requests \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite issue-comments \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite stargazers \ github.db $(echo $repo | tr -d '\r'); sleep 10; github-to-sqlite workflows \ github.db $(echo $repo | tr -d '\r'); sleep 10; done; # Scrape dependents github-to-sqlite scrape-dependents github.db simonw/datasette simonw/sqlite-utils -v sqlite-utils tables --counts github.db # Delete email addresses from raw_authors sqlite-utils github.db ""update raw_authors set email = ''"" # Fetch emojis github-to-sqlite emojis github.db --fetch # Rebuild FTS tables sqlite-utils rebuild-fts github.db # Populate _analyze_tables_ table sqlite-utils analyze-tables github.db --save",, 138709,9,27837,207052882,actions/upload-artifact@v2,,"{""path"": ""github.db""}",,, 138710,10,27837,207052882,google-github-actions/setup-gcloud@v0,Set up Cloud Run,"{""version"": ""318.0.0"", ""service_account_email"": ""${{ secrets.GCP_SA_EMAIL }}"", ""service_account_key"": ""${{ secrets.GCP_SA_KEY }}""}",,, 138711,11,27837,207052882,,Deploy to Cloud Run,,"gcloud config set run/region us-central1 gcloud config set project datasette-222320 datasette publish cloudrun github.db \ -m demo-metadata.json \ --service github-to-sqlite \ --install=datasette-search-all>=0.3 \ --install=datasette-render-markdown>=1.1.2 \ --install=datasette-pretty-json>=0.2.2 \ --install=datasette-json-html \ --install=datasette-vega \ --install=datasette-render-images \ --install=datasette-graphql \ --install=datasette-atom",, 138712,1,27838,207052882,actions/checkout@v2,,,,, 138713,2,27838,207052882,actions/setup-python@v2,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}""}",,, 138714,3,27838,207052882,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-pip-\n""}",,, 138715,4,27838,207052882,,Install dependencies,,"pip install -e '.[test]' ",, 138716,5,27838,207052882,,Run tests,,"pytest ",, 138717,1,27839,207052882,actions/checkout@v2,,,,, 138718,2,27839,207052882,actions/setup-python@v2,Set up Python,"{""python-version"": ""3.11""}",,, 138719,3,27839,207052882,actions/cache@v2,Configure pip caching,"{""path"": ""~/.cache/pip"", ""key"": ""${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }}"", ""restore-keys"": ""${{ runner.os }}-publish-pip-\n""}",,, 138720,4,27839,207052882,,Install dependencies,,"pip install setuptools wheel twine ",, 138721,5,27839,207052882,,Publish,,"python setup.py sdist bdist_wheel twine upload dist/* ","{""TWINE_USERNAME"": ""__token__"", ""TWINE_PASSWORD"": ""${{ secrets.PYPI_TOKEN }}""}", 138722,1,27840,207052882,actions/checkout@v2,Check out repo,,,, 138723,2,27840,207052882,,Update TOC,,npx markdown-toc README.md -i,, 138724,3,27840,207052882,,Commit and push if README changed,,"git diff git config --global user.email ""readme-bot@example.com"" git config --global user.name ""README-bot"" git diff --quiet || (git add README.md && git commit -m ""Updated README"") git push",, 138725,1,27841,207052882,actions/checkout@v2,,,,, 138726,2,27841,207052882,actions/setup-python@v2,Set up Python ${{ matrix.python-version }},"{""python-version"": ""${{ matrix.python-version }}""}",,,