mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
The workflow UI works best if there's only a single main workflow in a PR. We can keep things organized similarly by turning the test workflow into a reusable workflow. Same code (mostly), better UI.
19 lines
383 B
YAML
19 lines
383 B
YAML
name: Tests
|
|
on: workflow_call
|
|
jobs:
|
|
python-tests:
|
|
name: Python tests
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Set up Python environment
|
|
uses: ./.github/actions/setup-liberation-python
|
|
|
|
- name: run tests
|
|
run: |
|
|
./venv/scripts/activate
|
|
pytest tests
|