Update GitHub actions (#22) #109
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: Lint | |
on: push | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install Python dependencies | |
run: pip install black mypy . | |
- name: Run black | |
uses: wearerequired/lint-action@v2 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
black: true | |
auto_fix: true | |
- name: Run mypy | |
run: | | |
mypy bloomfilter/ --strict |