Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Allow basic checks and short ci tests without approval. need approval…
Browse files Browse the repository at this point in the history
… for framework tests
  • Loading branch information
omesser committed Jul 13, 2023
1 parent 1f307a1 commit 422be56
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 22 deletions.
57 changes: 36 additions & 21 deletions .github/workflows/check-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
steps:
- run: echo ✓
check:
needs: authorize
name: Check
runs-on: ubuntu-latest
steps:
Expand All @@ -47,8 +46,8 @@ jobs:
key: pre-commit|${{ env.PYSHA }}|${{ hashFiles('.pre-commit-config.yaml') }}
- run: pip install -U pre-commit tox
- run: SKIP=pylint pre-commit run -a --show-diff-on-failure
test:
needs: authorize
test-short:
needs: check
name: Test ${{ matrix.os }} with py${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -89,6 +88,39 @@ jobs:
pip install pre-commit .[tests]
- if: matrix.os == 'ubuntu-latest' && matrix.python == '3.10'
run: pre-commit run pylint -a -v --show-diff-on-failure
- name: Run short tests
timeout-minutes: 40
run: pytest -k 'not heroku and not flyio'
env:
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GITHUB_MATRIX_OS: ${{ matrix.os }}
GITHUB_MATRIX_PYTHON: ${{ matrix.python }}
BITBUCKET_USERNAME: ${{ secrets.BITBUCKET_USERNAME }}
BITBUCKET_PASSWORD: ${{ secrets.BITBUCKET_PASSWORD }}
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
test-framework:
needs: [authorize, test-short]
name: Test ${{ matrix.os }} with py${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python: ["3.8", "3.9", "3.10"]
exclude:
# no HDF5 support installed for tables
- os: windows-latest
python: "3.9"
# catboost building problems
- os: macos-latest
python: "3.8"
fail-fast: false
- name: Run Heroku tests
if: |
matrix.os == 'ubuntu-latest' &&
Expand All @@ -111,26 +143,9 @@ jobs:
- name: Start minikube
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.9'
uses: medyagh/setup-minikube@master
- name: Run tests
timeout-minutes: 40
run: pytest -k 'not heroku and not flyio'
env:
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GITHUB_MATRIX_OS: ${{ matrix.os }}
GITHUB_MATRIX_PYTHON: ${{ matrix.python }}
BITBUCKET_USERNAME: ${{ secrets.BITBUCKET_USERNAME }}
BITBUCKET_PASSWORD: ${{ secrets.BITBUCKET_PASSWORD }}
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
deploy:
name: PyPI Deploy
needs: [check, test]
needs: [check, test-short, test-framework]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/test_save.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}

0 comments on commit 422be56

Please sign in to comment.