[pre-commit.ci] pre-commit autoupdate #103
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 Test | |
on: [pull_request] | |
jobs: | |
build-tinybar: | |
name: Build & Test | |
runs-on: macos-11 | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.8 | |
- name: Set up Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.4.2 | |
- name: Install python dependencies | |
run: poetry install | |
- uses: pre-commit/[email protected] | |
name: "Linters and formatters check" | |
with: | |
extra_args: --all-files --show-diff-on-failure | |
- name: Build TinyBar.app | |
run: PYTHONPATH="." poetry run python3 setup.py py2app |