mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
ci: test old python releases, pin binary environments
This commit is contained in:
parent
abb8ccc210
commit
1e5464a9e6
46
.github/workflows/main.yml
vendored
46
.github/workflows/main.yml
vendored
@ -42,22 +42,32 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-latest, windows-latest, ubuntu-latest]
|
||||
include:
|
||||
- os: windows-latest
|
||||
py: 3.8
|
||||
- os: macos-latest
|
||||
py: 3.8
|
||||
- os: ubuntu-latest
|
||||
py: 3.8
|
||||
- os: ubuntu-latest
|
||||
py: 3.7
|
||||
- os: ubuntu-latest
|
||||
py: 3.6
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- run: printenv
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: '3.8'
|
||||
python-version: ${{ matrix.py }}
|
||||
- run: pip install tox
|
||||
- run: tox -e py38
|
||||
- run: tox -e py
|
||||
- uses: codecov/codecov-action@v1
|
||||
with:
|
||||
file: ./coverage.xml
|
||||
name: ${{ matrix.os }}
|
||||
fail_ci_if_error: false
|
||||
test-py35:
|
||||
test-unsupported-python-version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
@ -77,7 +87,7 @@ jobs:
|
||||
python-version: '3.8'
|
||||
- run: pip install tox
|
||||
- run: tox -e cibuild -- build
|
||||
- uses: actions/upload-artifact@master
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: wheel
|
||||
path: release/dist
|
||||
@ -86,7 +96,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# Old Ubuntu version for old glibc
|
||||
os: [macos-latest, windows-latest, ubuntu-16.04]
|
||||
os: [macos-10.15, windows-2019, ubuntu-16.04]
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
CI_BUILD_PYINSTALLER: 1
|
||||
@ -105,7 +115,7 @@ jobs:
|
||||
- run: pip install tox
|
||||
- run: tox -e cibuild -- build
|
||||
# artifacts must have different names, see https://github.com/actions/upload-artifact/issues/24
|
||||
- uses: actions/upload-artifact@master
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: binaries.${{ matrix.os }}
|
||||
path: release/dist
|
||||
@ -165,7 +175,7 @@ jobs:
|
||||
with:
|
||||
python-version: '3.7'
|
||||
- run: pip install tox
|
||||
- uses: actions/download-artifact@master
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: wheel
|
||||
path: release/dist
|
||||
@ -189,23 +199,13 @@ jobs:
|
||||
- uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: '3.8'
|
||||
# artifacts must be downloaded individually, see https://github.com/actions/download-artifact/issues/6
|
||||
- uses: actions/download-artifact@master
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: wheel
|
||||
path: release/dist
|
||||
- uses: actions/download-artifact@master
|
||||
with:
|
||||
name: binaries.windows-latest
|
||||
path: release/dist
|
||||
- uses: actions/download-artifact@master
|
||||
with:
|
||||
name: binaries.macos-latest
|
||||
path: release/dist
|
||||
- uses: actions/download-artifact@master
|
||||
with:
|
||||
name: binaries.ubuntu-16.04
|
||||
path: release/dist
|
||||
# move artifacts from their subfolders into release/dist
|
||||
- run: find release/dist -mindepth 2 -type f -exec mv {} release/dist \;
|
||||
# and then delete the empty folders
|
||||
- run: find release/dist -type d -empty -delete
|
||||
- run: ls release/dist
|
||||
- run: pip install tox
|
||||
- run: tox -e cibuild -- upload
|
||||
|
Loading…
Reference in New Issue
Block a user