Ver Fonte

Add Python 3.10 to CI (#299)

Alexander Borzunov há 2 anos atrás
pai
commit
74d8cda8c4
2 ficheiros alterados com 4 adições e 4 exclusões
  1. 1 1
      .github/workflows/check-style.yaml
  2. 3 3
      .github/workflows/run-tests.yaml

+ 1 - 1
.github/workflows/check-style.yaml

@@ -18,7 +18,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
+      - uses: actions/setup-python@v3
         with:
           python-version: 3.8
       - uses: isort/isort-action@master

+ 3 - 3
.github/workflows/run-tests.yaml

@@ -22,7 +22,7 @@ jobs:
           key: model-v1-${{ hashFiles('setup.cfg', 'src/petals/cli/convert_model.py') }}
       - name: Set up Python
         if: steps.cache-model.outputs.cache-hit != 'true'
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v3
         with:
           python-version: 3.9
       - name: Cache dependencies
@@ -59,14 +59,14 @@ jobs:
     needs: convert-model
     strategy:
       matrix:
-        python-version: [ 3.7, 3.8, 3.9 ]
+        python-version: [ '3.7', '3.8', '3.9', '3.10' ]
       fail-fast: false
     timeout-minutes: 15
     steps:
       - name: Checkout
         uses: actions/checkout@v3
       - name: Set up Python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v3
         with:
           python-version: ${{ matrix.python-version }}
       - name: Cache dependencies