-
-
Notifications
You must be signed in to change notification settings - Fork 44
46 lines (38 loc) · 1.41 KB
/
xtest.yaml
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
name: Regression Test
on: [pull_request]
jobs:
test:
name: Regression Test
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
python: ["python2.7", "python3.3", "python3.4", "python3.5", "python3.6", "python3.7", "python3.8", "python3.9", "python3.10", "python3.11", "python3.12", "pypy3"]
container:
image: danielflook/python-minifier-build:${{ matrix.python }}-2023-09-25
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set version statically
run: |
VERSION=0.0.0
sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py
- name: Run tests
run: |
if [[ "${{ matrix.python }}" == "python3.4" ]]; then
(cd /usr/lib64/python3.4/test && python3.4 make_ssl_certs.py)
elif [[ "${{ matrix.python }}" == "python3.5" ]]; then
(cd /usr/lib64/python3.5/test && python3.5 make_ssl_certs.py)
elif [[ "${{ matrix.python }}" == "pypy3" ]]; then
(cd /usr/lib64/pypy3-7.0/lib-python/3/test && pypy3 make_ssl_certs.py)
fi
tox -r -e $(echo "${{ matrix.python }}" | tr -d .) -- xtest
test-corpus:
needs: test
name: Minify Corpus
uses: ./.github/workflows/test_corpus.yaml
with:
ref: ${{ github.ref }}
base-ref: ${{ github.base_ref }}