mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 12:29:40 +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
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
python-version: '3.10'
|
||||
- run: pip install tox
|
||||
- run: tox -e flake8
|
||||
filename-matching:
|
||||
@ -35,7 +35,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
python-version: '3.10'
|
||||
- run: pip install tox
|
||||
- run: tox -e filename_matching
|
||||
mypy:
|
||||
@ -46,7 +46,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
python-version: '3.10'
|
||||
- run: pip install tox
|
||||
- run: tox -e mypy
|
||||
individual-coverage:
|
||||
@ -58,7 +58,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v2
|
||||
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: tox -e individual_coverage
|
||||
test:
|
||||
@ -67,11 +67,11 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
py: '3.10.0-rc - 3.10'
|
||||
py: "3.10"
|
||||
- os: windows-latest
|
||||
py: 3.9
|
||||
py: "3.10"
|
||||
- os: macos-latest
|
||||
py: 3.9
|
||||
py: "3.10"
|
||||
- os: ubuntu-latest
|
||||
py: 3.9
|
||||
- os: ubuntu-latest
|
||||
@ -118,7 +118,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
python-version: '3.10'
|
||||
- if: matrix.platform == 'windows'
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
@ -169,7 +169,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
python-version: '3.10'
|
||||
- run: |
|
||||
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
|
||||
@ -205,7 +205,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
python-version: '3.10'
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: binaries.linux
|
||||
@ -239,7 +239,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
python-version: '3.10'
|
||||
- run: sudo apt-get update
|
||||
- run: sudo apt-get install -y twine awscli
|
||||
- uses: actions/download-artifact@v2
|
||||
|
Loading…
Reference in New Issue
Block a user