File tree Expand file tree Collapse file tree 1 file changed +26
-10
lines changed Expand file tree Collapse file tree 1 file changed +26
-10
lines changed Original file line number Diff line number Diff line change 1
- name : Tests
1
+ name : CI
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
4
8
5
9
jobs :
6
- build :
7
10
11
+ dist :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/setup-python@v2
15
+ - run : python -m pip install --upgrade pip setuptools wheel twine readme-renderer
16
+ - uses : actions/checkout@v2
17
+ - run : python setup.py sdist bdist_wheel
18
+ - run : python -m twine check dist/*
19
+
20
+ pytest :
8
21
runs-on : ubuntu-latest
9
22
strategy :
10
- max-parallel : 4
11
23
matrix :
12
- python-version : [3.6, 3.7]
13
- django-version : [1.11.*, 2.2.*]
14
-
24
+ python-version :
25
+ - 3.6
26
+ - 3.7
27
+ - 3.8
28
+ django-version :
29
+ - 2.2.*
30
+ - 3.1.*
15
31
steps :
16
- - uses : actions/checkout@v1
32
+ - uses : actions/checkout@v2
17
33
- name : Set up Python ${{ matrix.python-version }}
18
- uses : actions/setup-python@v1
34
+ uses : actions/setup-python@v2
19
35
with :
20
36
python-version : ${{ matrix.python-version }}
21
37
26
42
- name : Install Selenium
27
43
run : |
28
44
mkdir bin
29
- curl -O https://chromedriver.storage.googleapis.com/77.0.3865.40/ chromedriver_linux64.zip
45
+ curl -O " https://chromedriver.storage.googleapis.com/$(curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/ chromedriver_linux64.zip"
30
46
unzip chromedriver_linux64.zip -d bin
31
47
- name : Install dependencies
32
48
run : |
You can’t perform that action at this time.
0 commit comments