hosts/.github/workflows/ci.yml
XhmikosR 491f45e017 CI: remove Python cache
Since we are still testing obsolete/unsupported Python versions, this is a workaround for the Windows Python 3.5 error.

It should be reverted later when support for Python 3.5 is dropped.
2022-03-07 08:53:37 +02:00

48 lines
892 B
YAML

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
name: Python ${{ matrix.python }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python:
- '3.5'
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- run: python --version
- run: pip --version
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Run lint
run: flake8
- name: Run tests
run: python testUpdateHostsFile.py