-
Notifications
You must be signed in to change notification settings - Fork 34
68 lines (64 loc) · 1.72 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
python: 3.6
- os: ubuntu-latest
python: 3.7
- os: ubuntu-latest
python: 3.8
- os: ubuntu-latest
python: 3.9
- os: ubuntu-latest
python: '3.10'
- os: macos-latest
python: 3.7
- os: macos-latest
python: 3.8
conda: True
- os: macos-latest
python: 3.9
- os: macos-latest
python: '3.10'
- os: windows-latest
python: '3.10'
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
if: ${{ !matrix.conda }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Set up Conda
if: matrix.conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python }}
conda-channels: anaconda, conda-forge
- run: conda --version
if: matrix.conda
- run: which python
if: matrix.conda
- run: python --version
- name: Install
run: python -m pip install -e ".[tests]"
- name: Print environment
run: |
python -m pip freeze
python --version
python -c "import html5validator; print(html5validator.__version__)"
- name: Lint html5validator
# run: pylint html5validator --disable=fixme
run: flake8
# - name: pycodestyle html5validator
# run: python -m pycodestyle html5validator
- name: Test
env:
PYTHONDEVMODE: 1
run: pytest -vv