mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
CI: use python 3.10 (#5195)
This commit is contained in:
parent
a0e04a7833
commit
a95aed44a7
22
.github/workflows/main.yml
vendored
22
.github/workflows/main.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.10'
|
||||||
- run: pip install tox
|
- run: pip install tox
|
||||||
- run: tox -e flake8
|
- run: tox -e flake8
|
||||||
filename-matching:
|
filename-matching:
|
||||||
@ -35,7 +35,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.10'
|
||||||
- run: pip install tox
|
- run: pip install tox
|
||||||
- run: tox -e filename_matching
|
- run: tox -e filename_matching
|
||||||
mypy:
|
mypy:
|
||||||
@ -46,7 +46,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.10'
|
||||||
- run: pip install tox
|
- run: pip install tox
|
||||||
- run: tox -e mypy
|
- run: tox -e mypy
|
||||||
individual-coverage:
|
individual-coverage:
|
||||||
@ -58,7 +58,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9' # there's a weird bug on 3.10 where some lines are not counted as covered.
|
||||||
- run: pip install tox
|
- run: pip install tox
|
||||||
- run: tox -e individual_coverage
|
- run: tox -e individual_coverage
|
||||||
test:
|
test:
|
||||||
@ -67,11 +67,11 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
py: '3.10.0-rc - 3.10'
|
py: "3.10"
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
py: 3.9
|
py: "3.10"
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
py: 3.9
|
py: "3.10"
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
py: 3.9
|
py: 3.9
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
@ -118,7 +118,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.10'
|
||||||
- if: matrix.platform == 'windows'
|
- if: matrix.platform == 'windows'
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
@ -169,7 +169,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.10'
|
||||||
- run: |
|
- run: |
|
||||||
wget -q https://github.com/gohugoio/hugo/releases/download/v0.92.1/hugo_extended_0.92.1_Linux-64bit.deb
|
wget -q https://github.com/gohugoio/hugo/releases/download/v0.92.1/hugo_extended_0.92.1_Linux-64bit.deb
|
||||||
echo "a9440adfd3ecce40089def287dee4e42ffae252ba08c77d1ac575b880a079ce6 hugo_extended_0.92.1_Linux-64bit.deb" | sha256sum -c
|
echo "a9440adfd3ecce40089def287dee4e42ffae252ba08c77d1ac575b880a079ce6 hugo_extended_0.92.1_Linux-64bit.deb" | sha256sum -c
|
||||||
@ -205,7 +205,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.10'
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: binaries.linux
|
name: binaries.linux
|
||||||
@ -239,7 +239,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.10'
|
||||||
- run: sudo apt-get update
|
- run: sudo apt-get update
|
||||||
- run: sudo apt-get install -y twine awscli
|
- run: sudo apt-get install -y twine awscli
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user