Skip to content

Commit 9b8a048

Browse files
committed
Add post-release install tests
1 parent 97a4660 commit 9b8a048

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/release.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,62 @@ jobs:
4545
Update docs
4646
4747
[skip ci]
48+
49+
test_package:
50+
runs-on: ubuntu-latest
51+
strategy:
52+
matrix:
53+
python: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8]
54+
needs: [release]
55+
container:
56+
image: danielflook/python-minifier-build:fedora30-2020-05-03
57+
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v2
60+
61+
- name: Install package
62+
run: |
63+
if [[ "${{ matrix.python }}" == "2.7" || "${{ matrix.python }}" == "3.7" ]]; then
64+
echo "pip is already installed"
65+
elif [[ "${{ matrix.python }}" == "3.8" ]]; then
66+
curl https://bootstrap.pypa.io/get-pip.py | python${{ matrix.python }}
67+
else
68+
curl https://bootstrap.pypa.io/pip/${{ matrix.python }}/get-pip.py | python${{ matrix.python }}
69+
fi
70+
71+
pip${{ matrix.python }} install python-minifier==${{ github.event.release.tag_name }}
72+
pyminify --version
73+
74+
test_package_3_3:
75+
runs-on: ubuntu-latest
76+
needs: [release]
77+
container:
78+
image: danielflook/python-minifier-build:fedora28-2020-05-03
79+
steps:
80+
- name: Install package
81+
run: |
82+
curl https://bootstrap.pypa.io/pip/3.3/get-pip.py | python3.3
83+
pip3.3 install python-minifier==${{ github.event.release.tag_name }}
84+
pyminify --version
85+
86+
test_package_3_9:
87+
runs-on: ubuntu-latest
88+
needs: [release]
89+
container:
90+
image: danielflook/python-minifier-build:fedora32-2020-10-11
91+
steps:
92+
- name: Install package
93+
run: |
94+
pip3.9 install python-minifier==${{ github.event.release.tag_name }}
95+
pyminify --version
96+
97+
test_package_3_10:
98+
runs-on: ubuntu-latest
99+
needs: [release]
100+
container:
101+
image: danielflook/python-minifier-build:fedora34-2021-10-05
102+
steps:
103+
- name: Install package
104+
run: |
105+
pip3.10 install python-minifier==${{ github.event.release.tag_name }}
106+
pyminify --version

0 commit comments

Comments
 (0)