Skip to content

Fetcher Tests

Fetcher Tests #39

name: Fetcher Tests
on:
push:
branches:
- main
paths:
- 'src/main/java/org/jabref/logic/importer/fetcher/**'
- 'src/test/java/org/jabref/logic/importer/fetcher/**'
- 'src/main/java/org/jabref/logic/importer/fileformat/PdfMergeMetadataImporter.java'
- 'src/test/java/org/jabref/logic/importer/fileformat/PdfMergeMetadataImporterTest.java'
- 'src/main/java/org/jabref/logic/crawler/**'
- 'src/test/java/org/jabref/logic/crawler/**'
- '.github/workflows/tests-code-fetchers.yml'
- 'build.gradle'
pull_request:
paths:
- 'src/main/java/org/jabref/logic/importer/fetcher/**'
- 'src/test/java/org/jabref/logic/importer/fetcher/**'
- 'src/main/java/org/jabref/logic/importer/fileformat/PdfMergeMetadataImporter.java'
- 'src/test/java/org/jabref/logic/importer/fileformat/PdfMergeMetadataImporterTest.java'
- 'src/main/java/org/jabref/logic/crawler/**'
- 'src/test/java/org/jabref/logic/crawler/**'
- '.github/workflows/tests-code-fetchers.yml'
- 'build.gradle'
schedule:
# run on each Monday
- cron: '2 3 * * 1'
workflow_dispatch:
env:
BiodiversityHeritageApiKey: ${{ secrets.BiodiversityHeritageApiKey_FOR_TESTS }}
AstrophysicsDataSystemAPIKey: ${{ secrets.AstrophysicsDataSystemAPIKey_FOR_TESTS }}
IEEEAPIKey: ${{ secrets.IEEEAPIKey_FOR_TESTS }}
MedlineApiKey: ${{ secrets.MedlineApiKey_FOR_TESTS }}
OpenAlexApiKey: ${{ secrets.OpenAlexApiKey_FOR_TESTS }}
SpringerNatureAPIKey: ${{ secrets.SPRINGERNATUREAPIKEY_FOR_TESTS }}
concurrency:
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
cancel-in-progress: true
permissions:
contents: read
jobs:
fetchertests:
if: github.repository == 'JabRef/jabref' || github.event_name != 'schedule'
name: Fetcher tests
runs-on: ubuntu-slim
steps:
- name: Checkout source
uses: actions/checkout@v6
with:
submodules: 'true'
show-progress: 'false'
- uses: ./.github/actions/setup-gradle
- name: Run fetcher tests
run: ./gradlew fetcherTest
env:
CI: "true"