-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (67 loc) · 1.9 KB
/
push.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
69
name: Push
on:
push:
branches:
- master
- develop
jobs:
build:
name: Build
runs-on: ubuntu-20.04
if: github.repository == 'LuisAlejandro/spices'
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11.0-alpha.5"]
distro:
- alpine
- arch
- centos
- debian
- fedora
- gentoo
npm: [true, false]
yarn: [true, false]
bundler: [true, false]
pip: [true, false]
include:
- python-version: "3.8"
toxenv: "py38"
- python-version: "3.9"
toxenv: "py39"
- python-version: "3.10"
toxenv: "py310"
- python-version: "3.11.0-alpha.5"
toxenv: "py311"
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Installing dependencies
run: |
sudo apt-get install libxml2-dev libxslt-dev
pip install -r requirements.txt -r requirements-dev.txt
- name: Measuring coverage
env:
TOXENV: ${{ matrix.toxenv }}
PYTHON_VERSION: ${{ matrix.python-version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tox -e ${TOXENV}
- name: Functional test
env:
TOXENV: ${{ matrix.toxenv }}
PYTHON_VERSION: ${{ matrix.python-version }}
run: |
if [ "${TOXENV}" == "py311" ]; then
PYTHON_VERSION="3.11"
fi
docker run \
-v ${PWD}:${PWD} \
-w ${PWD} \
dockershelf/python:${PYTHON_VERSION} \
bash -c "pip install . && \
cd ${PWD}/tests/cases/debian && \
spices install"