mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-14 00:00:34 +02:00
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.
48 lines
892 B
YAML
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
|