GeezerVison is showing github.com — Merge branch 'main' into main · fastapi/sqlmodel@93509eb
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/dependabot.yml +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,8 +5,12 @@ updates: | 5 | 5 | directory: "/" | 6 | 6 | schedule: | 7 | 7 | interval: "daily" | | 8 | + commit-message: | | 9 | + prefix: ⬆ | 8 | 10 | # Python | 9 | 11 | - package-ecosystem: "pip" | 10 | 12 | directory: "/" | 11 | 13 | schedule: | 12 | 14 | interval: "daily" | | 15 | + commit-message: | | 16 | + prefix: ⬆ |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/build-docs.yml +6-6Lines changed: 6 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 19 | 19 | env: | 20 | 20 | GITHUB_CONTEXT: ${{ toJson(github) }} | 21 | 21 | run: echo "$GITHUB_CONTEXT" | 22 | | - - uses: actions/checkout@v2 | | 22 | + - uses: actions/checkout@v3.1.0 | 23 | 23 | - name: Set up Python | 24 | | - uses: actions/setup-python@v2 | | 24 | + uses: actions/setup-python@v4 | 25 | 25 | with: | 26 | 26 | python-version: "3.7" | 27 | 27 | # Allow debugging with tmate | | 30 | 30 | if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} | 31 | 31 | with: | 32 | 32 | limit-access-to-actor: true | 33 | | - - uses: actions/cache@v2 | | 33 | + - uses: actions/cache@v3 | 34 | 34 | id: cache | 35 | 35 | with: | 36 | 36 | path: ${{ env.pythonLocation }} | | 53 | 53 | - name: Install Material for MkDocs Insiders | 54 | 54 | if: github.event.pull_request.head.repo.fork == false && steps.cache.outputs.cache-hit != 'true' | 55 | 55 | run: python -m poetry run pip install git+https://${{ secrets.ACTIONS_TOKEN }}@github.com/squidfunk/mkdocs-material-insiders.git | 56 | | - - uses: actions/cache@v2 | | 56 | + - uses: actions/cache@v3 | 57 | 57 | with: | 58 | 58 | key: mkdocs-cards-${{ github.ref }} | 59 | 59 | path: .cache | @@ -65,10 +65,10 @@ jobs: | 65 | 65 | run: python -m poetry run mkdocs build --config-file mkdocs.insiders.yml | 66 | 66 | - name: Zip docs | 67 | 67 | run: python -m poetry run bash ./scripts/zip-docs.sh | 68 | | - - uses: actions/upload-artifact@v2 | | 68 | + - uses: actions/upload-artifact@v3 | 69 | 69 | with: | 70 | 70 | name: docs-zip | 71 | | - path: ./docs.zip | | 71 | + path: ./site/docs.zip | 72 | 72 | - name: Deploy to Netlify | 73 | 73 | | 74 | 74 | with: | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/latest-changes.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 20 | 20 | latest-changes: | 21 | 21 | runs-on: ubuntu-latest | 22 | 22 | steps: | 23 | | - - uses: actions/checkout@v2 | | 23 | + - uses: actions/checkout@v3.1.0 | 24 | 24 | with: | 25 | 25 | # To allow latest-changes to commit to the main branch | 26 | 26 | token: ${{ secrets.ACTIONS_TOKEN }} | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/preview-docs.yml +8-3Lines changed: 8 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,17 +10,22 @@ jobs: | 10 | 10 | preview-docs: | 11 | 11 | runs-on: ubuntu-20.04 | 12 | 12 | steps: | 13 | | - - uses: actions/checkout@v2 | | 13 | + | | 14 | + - name: Clean site | | 15 | + run: | | | 16 | + rm -rf ./site | | 17 | + mkdir ./site | 14 | 18 | - name: Download Artifact Docs | 15 | | - uses: dawidd6/action-download-artifact@v2.9.0 | | 19 | + uses: dawidd6/action-download-artifact@v2.24.2 | 16 | 20 | with: | 17 | 21 | github_token: ${{ secrets.GITHUB_TOKEN }} | 18 | 22 | workflow: build-docs.yml | 19 | 23 | run_id: ${{ github.event.workflow_run.id }} | 20 | 24 | name: docs-zip | | 25 | + path: ./site/ | 21 | 26 | - name: Unzip docs | 22 | 27 | run: | | 23 | | - rm -rf ./site | | 28 | + cd ./site | 24 | 29 | unzip docs.zip | 25 | 30 | rm -f docs.zip | 26 | 31 | - name: Deploy to Netlify | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/publish.yml +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 15 | 15 | publish: | 16 | 16 | runs-on: ubuntu-20.04 | 17 | 17 | steps: | 18 | | - - uses: actions/checkout@v2 | | 18 | + - uses: actions/checkout@v3.1.0 | 19 | 19 | - name: Set up Python | 20 | | - uses: actions/setup-python@v2 | | 20 | + uses: actions/setup-python@v4 | 21 | 21 | with: | 22 | 22 | python-version: "3.7" | 23 | 23 | # Allow debugging with tmate | | 26 | 26 | if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} | 27 | 27 | with: | 28 | 28 | limit-access-to-actor: true | 29 | | - - uses: actions/cache@v2 | | 29 | + - uses: actions/cache@v3 | 30 | 30 | id: cache | 31 | 31 | with: | 32 | 32 | path: ${{ env.pythonLocation }} | |
Collapse file Copy file name to clipboard +35Lines changed: 35 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +name: Smokeshow | | 2 | + | | 3 | +on: | | 4 | + workflow_run: | | 5 | + workflows: [Test] | | 6 | + types: [completed] | | 7 | + | | 8 | +permissions: | | 9 | + statuses: write | | 10 | + | | 11 | +jobs: | | 12 | + smokeshow: | | 13 | + if: ${{ github.event.workflow_run.conclusion == 'success' }} | | 14 | + runs-on: ubuntu-latest | | 15 | + | | 16 | + steps: | | 17 | + - uses: actions/setup-python@v4 | | 18 | + with: | | 19 | + python-version: '3.9' | | 20 | + | | 21 | + - run: pip install smokeshow | | 22 | + | | 23 | + | | 24 | + with: | | 25 | + workflow: test.yml | | 26 | + commit: ${{ github.event.workflow_run.head_sha }} | | 27 | + | | 28 | + - run: smokeshow upload coverage-html | | 29 | + env: | | 30 | + SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage} | | 31 | + SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 95 | | 32 | + SMOKESHOW_GITHUB_CONTEXT: coverage | | 33 | + SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | | 34 | + SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.workflow_run.head_sha }} | | 35 | + SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }} |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/test.yml +41-5Lines changed: 41 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 22 | 22 | fail-fast: false | 23 | 23 |
| 24 | 24 | steps: | 25 | | - - uses: actions/checkout@v2 | | 25 | + - uses: actions/checkout@v3.1.0 | 26 | 26 | - name: Set up Python | 27 | | - uses: actions/setup-python@v2 | | 27 | + uses: actions/setup-python@v4 | 28 | 28 | with: | 29 | 29 | python-version: ${{ matrix.python-version }} | 30 | 30 | # Allow debugging with tmate | | 33 | 33 | if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} | 34 | 34 | with: | 35 | 35 | limit-access-to-actor: true | 36 | | - - uses: actions/cache@v2 | | 36 | + - uses: actions/cache@v3 | 37 | 37 | id: cache | 38 | 38 | with: | 39 | 39 | path: ${{ env.pythonLocation }} | | 56 | 56 | - name: Lint | 57 | 57 | if: ${{ matrix.python-version != '3.6.15' }} | 58 | 58 | run: python -m poetry run bash scripts/lint.sh | | 59 | + - run: mkdir coverage | 59 | 60 | - name: Test | 60 | 61 | run: python -m poetry run bash scripts/test.sh | 61 | | - - name: Upload coverage | 62 | | - uses: codecov/codecov-action@v2 | | 62 | + env: | | 63 | + COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }} | | 64 | + CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }} | | 65 | + - name: Store coverage files | | 66 | + uses: actions/upload-artifact@v3 | | 67 | + with: | | 68 | + name: coverage | | 69 | + path: coverage | | 70 | + coverage-combine: | | 71 | + needs: [test] | | 72 | + runs-on: ubuntu-latest | | 73 | + | | 74 | + steps: | | 75 | + - uses: actions/checkout@v3 | | 76 | + | | 77 | + - uses: actions/setup-python@v4 | | 78 | + with: | | 79 | + python-version: '3.8' | | 80 | + | | 81 | + - name: Get coverage files | | 82 | + uses: actions/download-artifact@v3 | | 83 | + with: | | 84 | + name: coverage | | 85 | + path: coverage | | 86 | + | | 87 | + - run: pip install coverage[toml] | | 88 | + | | 89 | + - run: ls -la coverage | | 90 | + - run: coverage combine coverage | | 91 | + - run: coverage report | | 92 | + - run: coverage html --show-contexts --title "Coverage for ${{ github.sha }}" | | 93 | + | | 94 | + - name: Store coverage HTML | | 95 | + uses: actions/upload-artifact@v3 | | 96 | + with: | | 97 | + name: coverage-html | | 98 | + path: htmlcov |
Collapse file Copy file name to clipboardExpand all lines: README.md +2-3Lines changed: 2 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 11 | 11 | <a href="https://github.com/tiangolo/sqlmodel/actions?query=workflow%3APublish" target="_blank"> | 12 | 12 | <img src="https://github.com/tiangolo/sqlmodel/workflows/Publish/badge.svg" alt="Publish"> | 13 | 13 | </a> | 14 | | -<a href="https://codecov.io/gh/tiangolo/sqlmodel" target="_blank"> | 15 | | - <img src="https://img.shields.io/codecov/c/github/tiangolo/sqlmodel?color=%2334D058" alt="Coverage"> | 16 | | -</a> | | 14 | +<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/tiangolo/sqlmodel" target="_blank"> | | 15 | + <img src="https://coverage-badge.samuelcolvin.workers.dev/tiangolo/sqlmodel.svg" alt="Coverage"> | 17 | 16 | <a href="https://pypi.org/project/sqlmodel" target="_blank"> | 18 | 17 | <img src="https://img.shields.io/pypi/v/sqlmodel?color=%2334D058&label=pypi%20package" alt="Package version"> | 19 | 18 | </a> | |
Collapse file Copy file name to clipboardExpand all lines: docs/db-to-code.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -62,7 +62,7 @@ The user is probably, in some way, telling your application: | 62 | 62 | 2 | 63 | 63 | ``` | 64 | 64 |
| 65 | | -And the would be this table (with a single row): | | 65 | +And the result would be this table (with a single row): | 66 | 66 |
| 67 | 67 | <table> | 68 | 68 | <tr> | |
Collapse file Copy file name to clipboardExpand all lines: docs/index.md +2-3Lines changed: 2 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 11 | 11 | <a href="https://github.com/tiangolo/sqlmodel/actions?query=workflow%3APublish" target="_blank"> | 12 | 12 | <img src="https://github.com/tiangolo/sqlmodel/workflows/Publish/badge.svg" alt="Publish"> | 13 | 13 | </a> | 14 | | -<a href="https://codecov.io/gh/tiangolo/sqlmodel" target="_blank"> | 15 | | - <img src="https://img.shields.io/codecov/c/github/tiangolo/sqlmodel?color=%2334D058" alt="Coverage"> | 16 | | -</a> | | 14 | +<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/tiangolo/sqlmodel" target="_blank"> | | 15 | + <img src="https://coverage-badge.samuelcolvin.workers.dev/tiangolo/sqlmodel.svg" alt="Coverage"> | 17 | 16 | <a href="https://pypi.org/project/sqlmodel" target="_blank"> | 18 | 17 | <img src="https://img.shields.io/pypi/v/sqlmodel?color=%2334D058&label=pypi%20package" alt="Package version"> | 19 | 18 | </a> | |
|