mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-02 00:05:27 +00:00
ci: py37 -> py38
This commit is contained in:
parent
7c4488e49a
commit
b67736bbef
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -2,10 +2,6 @@ name: CI
|
|||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
# We currently use Python 3.7 for most things:
|
|
||||||
# - zstandard currently doesn't have 3.8 wheels,
|
|
||||||
# - we need to upgrade cryptography from version 2.4, which also doesn't have wheels
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Codecov
|
# Codecov
|
||||||
CODECOV_TOKEN: "0409bdfd-57a4-477d-a8af-f6172ef431d3"
|
CODECOV_TOKEN: "0409bdfd-57a4-477d-a8af-f6172ef431d3"
|
||||||
@ -44,9 +40,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.8'
|
||||||
- run: pip install tox
|
- run: pip install tox
|
||||||
- run: tox -e py37
|
- run: tox -e py38
|
||||||
# codecov's GitHub action only supports Linux. https://github.com/codecov/codecov-action/issues/7
|
# codecov's GitHub action only supports Linux. https://github.com/codecov/codecov-action/issues/7
|
||||||
# codecov's Python uploader has no github actions support yet. https://github.com/codecov/codecov-python/pull/214
|
# codecov's Python uploader has no github actions support yet. https://github.com/codecov/codecov-python/pull/214
|
||||||
- name: Extract branch name # https://stackoverflow.com/a/58035262/934719
|
- name: Extract branch name # https://stackoverflow.com/a/58035262/934719
|
||||||
@ -77,7 +73,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.8'
|
||||||
- run: pip install tox
|
- run: pip install tox
|
||||||
- run: tox -e cibuild -- build
|
- run: tox -e cibuild -- build
|
||||||
- uses: actions/upload-artifact@master
|
- uses: actions/upload-artifact@master
|
||||||
@ -99,7 +95,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.8'
|
||||||
- if: matrix.os == 'windows-latest'
|
- if: matrix.os == 'windows-latest'
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
@ -142,7 +138,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.8'
|
||||||
- run: pip install tox
|
- run: pip install tox
|
||||||
- run: |
|
- run: |
|
||||||
wget https://github.com/gohugoio/hugo/releases/download/v0.65.3/hugo_extended_0.65.3_Linux-64bit.deb
|
wget https://github.com/gohugoio/hugo/releases/download/v0.65.3/hugo_extended_0.65.3_Linux-64bit.deb
|
||||||
@ -162,7 +158,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.8'
|
||||||
- run: pip install tox
|
- run: pip install tox
|
||||||
- uses: actions/download-artifact@master
|
- uses: actions/download-artifact@master
|
||||||
with:
|
with:
|
||||||
@ -187,7 +183,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.8'
|
||||||
# artifacts must be downloaded individually, see https://github.com/actions/download-artifact/issues/6
|
# artifacts must be downloaded individually, see https://github.com/actions/download-artifact/issues/6
|
||||||
- uses: actions/download-artifact@master
|
- uses: actions/download-artifact@master
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user