-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (55 loc) · 1.57 KB
/
Python_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
name: Python tests
on: [push]
env:
GITHUB_ACTIONS: 1
jobs:
ubuntu_firefox:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.8.18]
fail-fast: false
env:
BROWSER_SELENIUM: 'FIREFOX;{"headless": true, "binary_location": "/usr/bin/firefox"}'
LANG: "C.UTF-8"
steps:
- uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Start Redis
uses: supercharge/redis-github-action@1.4.0
with:
redis-version: 7
- name: Install Tox and any other packages
run: |
pip install versio
pip install tox
- name: Prepare Selenium enviroment
run: |
#Download geckodriver
wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
#Extract geckodriver
tar -xvzf geckodriver*
#Make geckodriver execuable
chmod +x geckodriver
#Move geckodriver
sudo mv geckodriver /usr/local/bin/
- name: Run Tox py-django31-drf3_11
run: tox -e py-django31-drf3_11
code_check:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.8.18]
steps:
- uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
run: tox -e check