Skip to content

Commit

Permalink
fix: [ci] updated matrix config
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikdevcom committed Oct 17, 2022
1 parent a99c1bc commit 59900b6
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 189 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
python-version: ['3.10.5', '3.9', '3.8', '3.7']
python-version: ['3.10.8', '3.9', '3.8', '3.7']
runs-on: ubuntu-latest
steps:
- name: Download code
Expand Down Expand Up @@ -49,20 +49,20 @@ jobs:
if: steps.poetry-install.outputs.cache-hit != 'true'
run: rm -rf ./.venv/ && poetry install
- name: Download cache for pre-commit
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.10.8'
id: pre-commit-install
uses: actions/cache@v2
with:
path: ~/.cache/pre-commit
key: py-${{ matrix.python-version }}-pre-commit-install-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: pre-commit-install
- name: Verify commit
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.10.8'
run: poetry run pre-commit run -a
- name: Auto-generate missing pairs
run: . activate.sh && poetry run python generatestructs.py
- name: Commit & Push changes
if: matrix.python-version == '3.10' && github.ref == 'refs/heads/main'
if: matrix.python-version == '3.10.8' && github.ref == 'refs/heads/main'
uses: actions-js/[email protected]
with:
author_email: "[email protected]"
Expand All @@ -71,7 +71,7 @@ jobs:
message: "sync: updated API pairs and coins"
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare codeclimate
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.10.8'
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
Expand All @@ -82,7 +82,7 @@ jobs:
timeout-minutes: 6
run: . activate.sh && poetry run pytest -v --cov . --cov-report xml:coverage.xml
- name: Send codeclimate analytics
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.10.8'
run: ./cc-test-reporter after-build -r ${{ secrets.CC_TEST_REPORTER_ID }} --exit-code $?
release:
runs-on: ubuntu-latest
Expand All @@ -92,7 +92,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: '3.10.8'
- name: Checkout code
uses: actions/checkout@v2
with:
Expand Down
Loading

0 comments on commit 59900b6

Please sign in to comment.