fix: [ci] update actions python version

api-breakage
Morty Space 3 years ago
parent 59900b6502
commit a7db870c80
  1. 14
      .github/workflows/test_release.yml

@ -18,7 +18,7 @@ jobs:
strategy: strategy:
max-parallel: 1 max-parallel: 1
matrix: matrix:
python-version: ['3.10.8', '3.9', '3.8', '3.7'] python-version: ['3.10.7', '3.9', '3.8', '3.7']
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Download code - name: Download code
@ -49,7 +49,7 @@ jobs:
if: steps.poetry-install.outputs.cache-hit != 'true' if: steps.poetry-install.outputs.cache-hit != 'true'
run: rm -rf ./.venv/ && poetry install run: rm -rf ./.venv/ && poetry install
- name: Download cache for pre-commit - name: Download cache for pre-commit
if: matrix.python-version == '3.10.8' if: matrix.python-version == '3.10.7'
id: pre-commit-install id: pre-commit-install
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
@ -57,12 +57,12 @@ jobs:
key: py-${{ matrix.python-version }}-pre-commit-install-${{ hashFiles('.pre-commit-config.yaml') }} key: py-${{ matrix.python-version }}-pre-commit-install-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: pre-commit-install restore-keys: pre-commit-install
- name: Verify commit - name: Verify commit
if: matrix.python-version == '3.10.8' if: matrix.python-version == '3.10.7'
run: poetry run pre-commit run -a run: poetry run pre-commit run -a
- name: Auto-generate missing pairs - name: Auto-generate missing pairs
run: . activate.sh && poetry run python generatestructs.py run: . activate.sh && poetry run python generatestructs.py
- name: Commit & Push changes - name: Commit & Push changes
if: matrix.python-version == '3.10.8' && github.ref == 'refs/heads/main' if: matrix.python-version == '3.10.7' && github.ref == 'refs/heads/main'
uses: actions-js/push@v1.3 uses: actions-js/push@v1.3
with: with:
author_email: "morty.space@gmail.com" author_email: "morty.space@gmail.com"
@ -71,7 +71,7 @@ jobs:
message: "sync: updated API pairs and coins" message: "sync: updated API pairs and coins"
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare codeclimate - name: Prepare codeclimate
if: matrix.python-version == '3.10.8' if: matrix.python-version == '3.10.7'
run: | run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter chmod +x ./cc-test-reporter
@ -82,7 +82,7 @@ jobs:
timeout-minutes: 6 timeout-minutes: 6
run: . activate.sh && poetry run pytest -v --cov . --cov-report xml:coverage.xml run: . activate.sh && poetry run pytest -v --cov . --cov-report xml:coverage.xml
- name: Send codeclimate analytics - name: Send codeclimate analytics
if: matrix.python-version == '3.10.8' if: matrix.python-version == '3.10.7'
run: ./cc-test-reporter after-build -r ${{ secrets.CC_TEST_REPORTER_ID }} --exit-code $? run: ./cc-test-reporter after-build -r ${{ secrets.CC_TEST_REPORTER_ID }} --exit-code $?
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -92,7 +92,7 @@ jobs:
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.10.8' python-version: '3.10.7'
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:

Loading…
Cancel
Save