From f800320cc8b2abf798499ac86c21397ba9afe6e9 Mon Sep 17 00:00:00 2001 From: Adam Roberts Date: Mon, 22 Jun 2020 09:05:11 -0700 Subject: [PATCH] Update build status path to GitHub Actions and remove Travis config. PiperOrigin-RevId: 317665460 --- .github/workflows/build.yml | 35 ----------------------------------- .travis.yml | 9 --------- README.md | 2 +- 3 files changed, 1 insertion(+), 45 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 3deafa34..00000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: build - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: Install dependencies - run: pip install -e .[cache-tasks,test] - - name: Test with pytest - run: pytest - # The below step just reports the success or failure of tests as a "commit status". - # This is needed for copybara integration. - - name: Report success or failure as github status - if: always() - shell: bash - run: | - status="${{ job.status }}" - lowercase_status=$(echo $status | tr '[:upper:]' '[:lower:]') - curl -sS --request POST \ - --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \ - --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ - --header 'content-type: application/json' \ - --data '{ - "state": "'$lowercase_status'", - "target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "description": "'$status'", - "context": "github-actions/build" - }' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 28a2e23f..00000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: python -python: - - "3.6" -# command to install dependencies -install: - - pip install -e .[cache-tasks,test] -# command to run tests -script: - - pytest diff --git a/README.md b/README.md index b90f47c2..85cf2bdd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # T5: Text-To-Text Transfer Transformer -[![Build Status](https://travis-ci.org/google-research/text-to-text-transfer-transformer.svg?branch=master)](https://travis-ci.org/google-research/text-to-text-transfer-transformer) +[![Build Status](https://github.com/google-research/text-to-text-transfer-transformer/workflows/build/badge.svg)](https://github.com/google-research/text-to-text-transfer-transformer/actions?query=workflow%3Abuild) T5 serves primarily as code for reproducing the experiments in [_Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer_][paper]. In the paper, we demonstrate how to achieve state-of-the-art results on multiple NLP tasks using a text-to-text transformer pre-trained on a large text corpus.