forked from PythonCharmers/python-future
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (56 loc) · 1.66 KB
/
Copy pathci.yml
File metadata and controls
56 lines (56 loc) · 1.66 KB
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
name: CI
on:
push:
branches: master
pull_request:
jobs:
test:
# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
name: test (Python ${{ matrix.python-version }})
strategy:
fail-fast: false
matrix:
python-version: [2.6, 2.7, 3.3, 3.4, 3.5, 3.6, 3.7]
# matrix:
# include:
# - os: ubuntu-16.04
# python-version: 2.6
# - os: ubuntu-latest
# python-version: 2.7
# - os: ubuntu-16.04
# python-version: 3.3
# - os: ubuntu-16.04
# python-version: 3.4
# - os: ubuntu-latest
# python-version: 3.5
# - os: ubuntu-latest
# python-version: 3.6
# - os: ubuntu-latest
# python-version: 3.7
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
# if: matrix.python-version != 2.6
with:
python-version: "${{ matrix.python-version }}"
# - name: Set up Python with deadsnakes
# uses: deadsnakes/action@v1.0.0
# if: matrix.python-version == 2.6
# with:
# python-version: ${{ matrix.python-version }}
- name: Install pip
if: matrix.python-version == 2.6
run: |
curl https://bootstrap.pypa.io/${{ matrix.python-version }}/get-pip.py | python - 'pip==9.0.3'
- name: Install setuptools
if: matrix.python-version == 3.3
run: |
pip install setuptools
- name: Install dependencies
run: |
pip --version
pip install -r test-requirements-${{ matrix.python-version }}.txt
- name: Run tests
run: tox -e py