-
Notifications
You must be signed in to change notification settings - Fork 38
38 lines (34 loc) · 1.09 KB
/
ci.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
name: CI
on: [push]
jobs:
python-tests:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ ubuntu-20.04 ]
python-version: [ '3.8' ]
toxenv: [django32, django42, quality]
steps:
- uses: actions/checkout@v2
continue-on-error: true
- name: Python setup
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up test environment
run: |
sudo apt-get update
sudo apt-get install xvfb gettext
wget https://github.com/mozilla/geckodriver/releases/download/v0.25.0/geckodriver-v0.25.0-linux64.tar.gz
mkdir geckodriver
tar -xzf geckodriver-v0.25.0-linux64.tar.gz -C geckodriver
export PATH=$PATH:$PWD/geckodriver
export BOKCHOY_HEADLESS=true
- run: geckodriver --version
- name: Install Requirements
run: |
pip install -r requirements/ci.txt
- name: Run Tests
run: xvfb-run --server-args=-ac -- tox -e ${{ matrix.toxenv }}
env:
BOKCHOY_HEADLESS: true