Skip to content

Commit

Permalink
Update GH actions (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee authored Aug 26, 2022
1 parent 29b89fc commit 781253b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- name: "Build package & docs"
run: |
hatch build
hatch run docs
hatch run docs_build
- name: "Publish"
run: |
hatch publish --no-prompt
mkdocs gh-deploy --force
hatch run docs_deploy
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: "Build package & docs"
run: |
hatch build
hatch run docs
hatch run docs_build
- name: "Run tests with SQLite"
env:
TEST_DATABASE_URI_SYNC: "sqlite:///test.db?check_same_thread=False"
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ dependencies = [
check = "isort --check --project=sqladmin . && black --check . && mypy sqladmin"
clean = "rm -r dist site"
cov = "coverage report --show-missing --skip-covered --fail-under=99 && coverage xml"
docs = "mkdocs build"
docs = "mkdocs serve"
docs_build = "mkdocs build"
docs_deploy = "mkdocs gh-deploy --force"
lint = "autoflake --in-place --recursive .s && isort --project=sqladmin . && black ."
test = "python -m coverage run --concurrency=thread,greenlet -m pytest"

Expand Down

0 comments on commit 781253b

Please sign in to comment.