hosts/.github/workflows/ci.yml

56 lines
1.0 KiB
YAML
Raw Normal View History

2020-04-08 07:43:45 +02:00
name: CI
on:
push:
pull_request:
workflow_dispatch:
2020-04-08 07:43:45 +02:00
permissions:
contents: read
2020-04-08 07:43:45 +02:00
jobs:
test:
name: Python ${{ matrix.python }} on ${{ matrix.os }}
2020-04-08 07:43:45 +02:00
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
os:
- ubuntu-latest
- macos-latest
- windows-latest
2020-04-08 07:43:45 +02:00
steps:
- name: Clone repository
uses: actions/checkout@v3
2020-04-08 07:43:45 +02:00
- name: Set up Python
uses: actions/setup-python@v4
2020-04-08 07:43:45 +02:00
with:
python-version: ${{ matrix.python }}
cache: pip
2020-04-08 07:43:45 +02:00
2022-03-07 07:58:22 +01:00
- name: Print versions
run: |
python --version
pip --version
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Run lint
run: flake8
2020-04-08 07:43:45 +02:00
- name: Run makeHosts.py
run: python makeHosts.py
2020-04-08 07:43:45 +02:00
- name: Run tests
run: python testUpdateHostsFile.py