Fix issue with TTL policies in set_up_composite_indexes_and_ttl_polic… #8
Workflow file for this run
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
name: Build and publish to PyPI | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
name: Test and build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🔁 | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 | |
- name: Set up Python 🐍 | |
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 #v4.7.1 | |
with: | |
python-version: "3.9" | |
- name: Install Firestore emulator 🚧 | |
run: | | |
# with at least 13.5.1 and 13.6.0 tests can't connect to the emulator | |
npm install -g [email protected] | |
- name: Start Firestore emulator 🚦 | |
run: | | |
./start_emulator.sh > /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: Build the package 📦 | |
run: poetry build | |
- name: Publish build artifact ⬆️ | |
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 #v4.3.1 | |
with: | |
name: package-dist | |
path: dist | |
publish: | |
name: Publish | |
needs: build | |
runs-on: ubuntu-latest | |
environment: PyPI | |
permissions: | |
# this permission is mandatory for trusted publishing | |
id-token: write | |
steps: | |
- name: Download build artifact ⬇️ | |
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe #v4.1.2 | |
with: | |
name: package-dist | |
path: dist | |
- name: Publish package to PyPI 🙌 | |
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf #v1.8.11 |