update emoji_status.py #248
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: Format and test code with uv | |
| on: | |
| push: | |
| branches: | |
| - test | |
| jobs: | |
| lint-format-and-test: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout electrogram | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| version: "latest" | |
| - name: Install dependencies | |
| run: | | |
| uv python install 3.13 | |
| uv sync --extra dev | |
| - name: Run ruff to lint and format code | |
| run: | | |
| uv run ruff check . --exit-zero | |
| uv run ruff format . | |
| git add -u | |
| - name: Commit and push changes | |
| run: | | |
| git config --global user.name "5hojib" | |
| git config --global user.email "[email protected]" | |
| if git diff-index --quiet HEAD --; then | |
| echo "No changes to commit." | |
| else | |
| git commit -m "InkyPinkyPonky [no ci]" --signoff | |
| git push origin ${{ github.ref }} | |
| fi | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GX_TOKEN }} | |
| - name: Run tests | |
| run: uv run pytest |