-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to GitHub actions, update dependencies and pre-commit hooks ... (
#39) Included changes: - Switch from Travis-CI to GitHub actions. - Add pre-commit hook and configs for prettier, reformat files accordingly. - Update dependencies. - Update pre-commit hooks. - Update links to GitHub repo due to organization rename. - Switch to poetry-core. - Bump version to 0.3.0.
- Loading branch information
1 parent
0cd3619
commit 091e150
Showing
9 changed files
with
449 additions
and
478 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,50 @@ | ||
name: Build and upload to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
build_and_upload: | ||
name: Build and upload | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🔁 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 🐍 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Setup GCloud SDK 📦 | ||
uses: google-github-actions/[email protected] | ||
|
||
- name: Install Firestore emulator 🚧 | ||
run: | | ||
gcloud components install beta cloud-firestore-emulator | ||
- name: Start Firestore emulator 🚦 | ||
run: | | ||
gcloud --quiet beta emulators firestore start --host-port 127.0.0.1:8686 > /dev/null 2>&1 & | ||
- name: Install Poetry and pre-commit 💈 | ||
run: pip install poetry pre-commit | ||
|
||
- name: Install dependencies 🛠 | ||
run: poetry install | ||
|
||
- name: Run pre-commit 🤔 | ||
run: pre-commit run --all-files | ||
|
||
- name: Run tests 🌈 | ||
run: poetry run invoke test | ||
|
||
- name: Publish package to PyPI 🙌 | ||
run: | | ||
set -e | ||
poetry config http-basic.pypi "__token__" "${PYPI_TOKEN}" | ||
poetry publish --build | ||
env: | ||
PYPI_TOKEN: ${{ secrets.PYPI_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,44 @@ | ||
name: Test the library | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, edited] | ||
|
||
jobs: | ||
run_tests: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
steps: | ||
- name: Checkout 🔁 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} 🐍 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Setup GCloud SDK 📦 | ||
uses: google-github-actions/[email protected] | ||
|
||
- name: Install Firestore emulator 🚧 | ||
run: | | ||
gcloud components install beta cloud-firestore-emulator | ||
- name: Start Firestore emulator 🚦 | ||
run: | | ||
gcloud --quiet beta emulators firestore start --host-port 127.0.0.1:8686 > /dev/null 2>&1 & | ||
- name: Install Poetry and pre-commit 💈 | ||
run: pip install poetry pre-commit | ||
|
||
- name: Install dependencies 🛠 | ||
run: poetry install | ||
|
||
- name: Run pre-commit 🤔 | ||
run: pre-commit run --all-files | ||
|
||
- name: Run tests 🌈 | ||
run: poetry run invoke test |
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,18 @@ | ||
module.exports = { | ||
printWidth: 88, | ||
trailingComma: "es5", | ||
useTabs: false, | ||
tabWidth: 2, | ||
semi: false, | ||
singleQuote: false, | ||
endOfLine: "lf", | ||
proseWrap: "always", | ||
overrides: [ | ||
{ | ||
files: "*.yaml", | ||
options: { | ||
proseWrap: "preserve", | ||
}, | ||
}, | ||
], | ||
} |
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
Oops, something went wrong.