-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'posit-dev:main' into main
- Loading branch information
Showing
66 changed files
with
4,436 additions
and
436 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: CI | ||
on: | ||
- push | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
check-latest: true | ||
cache: 'pip' | ||
- run: make deps | ||
- run: make lint | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
- '3.12' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
check-latest: true | ||
cache: 'pip' | ||
- run: make deps | ||
- run: make dev | ||
- run: make test | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
check-latest: true | ||
cache: 'pip' | ||
- run: make deps | ||
- run: make build | ||
|
||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
check-latest: true | ||
cache: 'pip' | ||
- uses: quarto-dev/quarto-actions/setup@v2 | ||
- run: make deps | ||
- run: make dev | ||
- run: make docs |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Coverage Report | ||
on: | ||
workflow_run: | ||
workflows: ["Coverage"] | ||
types: | ||
- completed | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
permissions: | ||
actions: read | ||
contents: read | ||
pull-requests: write | ||
jobs: | ||
default: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: coverage.xml | ||
run-id: ${{ github.event.workflow_run.id }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: orgoro/[email protected] | ||
with: | ||
coverageFile: coverage.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Coverage | ||
on: | ||
- pull_request | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
cov: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
check-latest: true | ||
cache: 'pip' | ||
- run: make deps | ||
- run: make dev | ||
- run: make test | ||
- run: make cov-xml | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage.xml | ||
path: coverage.xml | ||
retention-days: 1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
"cSpell.words": [ | ||
"mypy" | ||
] | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
_extensions/ | ||
_inv/ | ||
_site/ | ||
.quarto/ | ||
objects.json | ||
reference/ | ||
|
||
/.quarto/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.DEFAULT_GOAL := all | ||
|
||
# Command aliases | ||
QUARTO=quarto | ||
QUARTODOC=quartodoc | ||
|
||
# Environment variables | ||
CURRENT_YEAR := $(shell date +%Y) | ||
VERSION := $(shell make -C ../ version) | ||
export CURRENT_YEAR VERSION | ||
|
||
.PHONY: clean build deps preview | ||
|
||
all: deps api build | ||
|
||
api: deps | ||
$(QUARTODOC) build | ||
$(QUARTODOC) interlinks | ||
cp -r _extensions/ reference/_extensions # Required to render footer | ||
|
||
build: api | ||
$(QUARTO) render | ||
|
||
clean: | ||
rm -rf _extensions _inv _site .quarto reference objects.json | ||
find . -type d -empty -delete | ||
|
||
deps: | ||
$(QUARTO) add --no-prompt posit-dev/[email protected] | ||
$(QUARTO) add --no-prompt machow/quartodoc | ||
|
||
preview: api | ||
$(QUARTO) preview |
Oops, something went wrong.