Merge pull request #49 from Justintime50/fix_class_name #390
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 | |
on: | |
push: | |
paths: | |
- '.github/workflows/build.yml' | |
- '**/*.py' | |
branches: | |
- '**' | |
tags: | |
- '!**' | |
pull_request: | |
paths: | |
- '.github/workflows/build.yml' | |
- '**/*.py' | |
workflow_dispatch: ~ | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: extractions/setup-just@v2 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- run: just install lint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: extractions/setup-just@v2 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- run: just install coverage | |
brew-audit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: extractions/setup-just@v2 | |
- uses: Homebrew/actions/setup-homebrew@master | |
# These Homebrew packages are needed since we have them as fake dependencies for some test output | |
- name: Setup required Homebrew packages | |
run: brew install bash gcc | |
- name: Run brew audit on generated test formula | |
run: just audit | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- name: Build Docker image | |
run: docker build . -t justintime50/homebrew-releaser | |
coverage: | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: extractions/setup-just@v2 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- run: just install coverage | |
- uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: './coverage.lcov' |