|
8 | 8 |
|
9 | 9 | release:
|
10 | 10 | runs-on: ubuntu-latest
|
| 11 | + permissions: |
| 12 | + contents: write |
11 | 13 | container:
|
12 |
| - image: danielflook/python-minifier-build:fedora34-2021-10-05 |
| 14 | + image: danielflook/python-minifier-build:python3.10-2022-04-12 |
13 | 15 | steps:
|
14 | 16 | - name: Checkout
|
15 | 17 | uses: actions/checkout@v2
|
@@ -50,57 +52,11 @@ jobs:
|
50 | 52 | runs-on: ubuntu-latest
|
51 | 53 | strategy:
|
52 | 54 | matrix:
|
53 |
| - python: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8] |
54 |
| - needs: [release] |
| 55 | + python: ["2.7", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] |
55 | 56 | container:
|
56 |
| - image: danielflook/python-minifier-build:fedora30-2020-05-03 |
| 57 | + image: danielflook/python-minifier-build:python${{ matrix.python }}-2022-04-12 |
57 | 58 | steps:
|
58 |
| - - name: Checkout |
59 |
| - uses: actions/checkout@v2 |
60 |
| - |
61 |
| - - name: Install package |
| 59 | + - name: Test |
62 | 60 | 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 | 61 | pip${{ matrix.python }} install python-minifier==${{ github.event.release.tag_name }}
|
72 | 62 | 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