Skip to content

Try to run unit test first. #730

Try to run unit test first.

Try to run unit test first. #730

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Linters
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
name:
description: 'Reason'
required: false
default: 'Just Cause'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [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 }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
flit install --symlink
- name: dependency tree
run: |
pipdeptree
- name: dependency tree (reversed)
run: |
pipdeptree -r
- name: Lint with black
run: |
black --check papyri
- name: Lint with flake8
if: always()
run: |
flake8 papyri
- name: Test with mypy
if: always()
run: |
python3 -m pip install types-requests types-cachetools types-toml
mypy papyri