Update README.md #52
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
name: Build app | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up PDM | |
uses: pdm-project/[email protected] | |
- name: Install dependencies | |
run: | | |
pdm sync | |
- name: Run checks with ruff | |
run: | | |
pdm run ruff check | |
pdm run ruff format --check | |
- name: Check typing | |
run: | | |
pdm run mypy maldump | |
- name: Run simple tests | |
run: | | |
pdm run python -m unittest | |
pdm run python -m maldump ./test/root |