Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run build if formatting succeeds #822

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ on:
pull_request:
release:
types: [created]
schedule:
- cron: '0 0 * * *'

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Run tests
format:
name: Check the code format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -31,15 +38,12 @@ jobs:
run: |
pip install -r requirements.txt --progress-bar off
pip install -e "." --progress-bar off
- name: Test with pytest
run: |
pytest --cov=keras_nlp --cov-report xml:coverage.xml
- name: Run integration tests
run: |
python pip_build.py --install && cd integration_tests && pytest .
format:
name: Check the code format
- name: Lint
run: bash shell/lint.sh
build:
name: Run tests
runs-on: ubuntu-latest
needs: format
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
Expand All @@ -62,5 +66,6 @@ jobs:
run: |
pip install -r requirements.txt --progress-bar off
pip install -e "." --progress-bar off
- name: Lint
run: bash shell/lint.sh
- name: Test with pytest
run: |
pytest --cov=keras_nlp --cov-report xml:coverage.xml
44 changes: 0 additions & 44 deletions .github/workflows/nightly.yml

This file was deleted.