-
-
Notifications
You must be signed in to change notification settings - Fork 44
32 lines (27 loc) · 921 Bytes
/
test.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
name: Unit Test
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-latest
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", "python3.13", "pypy", "pypy3"]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-tags: 'true'
show-progress: 'false'
- 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
uses: ./.github/actions/run-in-container
with:
image: danielflook/python-minifier-build:${{ matrix.python }}-2024-09-15
run: |
tox -r -e $(echo "${{ matrix.python }}" | tr -d .)