-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving from travis to Github Actions (#1853)
* replacing the .travis.yml with a Github Actions test script * This does everything that the travis script did except for coveralls / artifactory upload which can be handled later
- Loading branch information
1 parent
bdfea14
commit b8d8479
Showing
3 changed files
with
63 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# This is a github actions workflow which runs picard tests | ||
|
||
name: Build and Test | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ 8, 11 ] | ||
experimental: [false] | ||
run_barclay_tests: [true, false] | ||
# include: | ||
# - java: 17 | ||
# experimental: true | ||
fail-fast: false | ||
continue-on-error: ${{ matrix.experimental }} | ||
name: Java ${{ matrix.Java }}, Barclay=${{ matrix.run_barclay_tests}} tests | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up java ${{ matrix.Java }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.Java }} | ||
distribution: 'adopt' | ||
cache: gradle | ||
- name: "set up R" | ||
run: | | ||
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | ||
sudo apt-get -qq update | ||
sudo apt-get install -y --no-install-recommends r-base-dev r-recommended qpdf | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Compile with Gradle | ||
run: ./gradlew compileJava | ||
- name: Run tests | ||
run: | | ||
if [[ ${{matrix.run_barclay_tests}} == true ]]; then | ||
echo "Running tests using the Barclay command line parser." | ||
./gradlew barclayTest | ||
else | ||
echo "Running tests using the legacy Picard command line parser." | ||
./gradlew jacocoTestReport | ||
fi | ||
- name: "Build the jar and run a commandline test for sanity checking" | ||
run: | | ||
./gradlew currentJar | ||
java -jar build/libs/picard.jar MarkDuplicates -I testdata/picard/sam/aligned_queryname_sorted.bam -O out.bam --METRICS_FILE out.metrics | ||
- name: Upload test results | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-results-${{ matrix.Java }}-barclay-${{ matrix.run_barclay_tests}} | ||
path: build/reports/tests | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters