mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
This is just the first step to prove the concept. Most of the work done in our workflows can be split into separate jobs to parallelize the workflow. This will also make the checks page more readable. This change alone probably won't speed up CI much.
29 lines
553 B
YAML
29 lines
553 B
YAML
name: Python lint
|
|
|
|
on: workflow_call
|
|
|
|
jobs:
|
|
black:
|
|
name: Black
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
- uses: psf/black@stable
|
|
with:
|
|
args: ". --check"
|
|
|
|
mypy:
|
|
name: Type checking
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Set up Python environment
|
|
uses: ./.github/actions/setup-liberation-python
|
|
|
|
- name: mypy
|
|
uses: ./.github/actions/mypy
|