Skip to content

SagiPolaczek is testing out GitHub Actions 🚀 #11

SagiPolaczek is testing out GitHub Actions 🚀

SagiPolaczek is testing out GitHub Actions 🚀 #11

name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on:
pull_request:
branches: [ "main" ]
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
with:
options: "--check --verbose --diff --color"
src: "."
version: "22.3.0"
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- uses: py-actions/flake8@v2
with:
path: "."
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- run: pip install --upgrade pip
- run: pip install mypy==0.950
- run: python -m mypy . --show-error-codes
build-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -q .[examples]
- name: Test with pytest
run: |
python -m pytest --durations=40 --cov=mammal --cov-fail-under=45 --capture=no mammal/examples/tests