mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-04 00:59:54 +02:00
Issue #89: try GitHub actions for Windows.
This commit is contained in:
parent
c40af57cb7
commit
22037ab5f0
1 changed files with 23 additions and 0 deletions
23
.github/workflows/test.yml
vendored
23
.github/workflows/test.yml
vendored
|
@ -30,3 +30,26 @@ jobs:
|
|||
- name: Test with pytest
|
||||
run: |
|
||||
pytest -v
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install black flake8 pytest
|
||||
pip install -r requirements.txt
|
||||
pip install .
|
||||
- name: Check code style with Black
|
||||
run: |
|
||||
black -l 80 --check map_machine tests
|
||||
- name: Lint with Flake8
|
||||
run: |
|
||||
flake8 --max-line-length=80 --ignore=E203,W503
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest -v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue