Add partition key to state operations #275
Workflow file for this run
This file contains hidden or 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: Lint and Build | |
on: | |
push: | |
branches: | |
- feature/* | |
- feat/* | |
- bugfix/* | |
- hotfix/* | |
- fix/* | |
pull_request: | |
branches: | |
- main | |
- feature/* | |
- release-* | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel tox | |
- name: Run Autoformatter | |
run: | | |
tox -e ruff | |
statusResult=$(git status -u --porcelain) | |
if [ -z "$statusResult" ] | |
then | |
exit 0 | |
else | |
echo "Source files are not formatted correctly. Run 'tox -e ruff' to autoformat." | |
exit 1 | |
fi | |
- name: Run Linter | |
run: | | |
tox -e flake8 | |
build: | |
needs: lint | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python_ver: ["3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python_ver }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python_ver }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel tox | |
- name: Install package and test dependencies | |
run: | | |
pip cache purge | |
pip install --upgrade pip setuptools wheel | |
pip install -e . | |
pip install -e .[test] | |
- name: Check Typing | |
run: | | |
tox -e type | |
- name: Run Tests | |
run: | | |
tox -e pytest |