Get and parse metadata also from DataCite API #32
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
name: Test | |
on: | |
push: | |
paths: | |
- '**.py' | |
- .github/workflows/test.yaml | |
- pyproject.toml | |
pull_request: | |
paths: | |
- '**.py' | |
- .github/workflows/test.yaml | |
- pyproject.toml | |
concurrency: | |
group: test-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.9', '3.13'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install tox | |
run: pip install tox | |
- name: Run unit tests | |
run: tox -e test | |
- name: Install project | |
run: pip install . | |
- name: Test rfparser | |
run: rfparser -v --pages 1 --xml pubs_for_website.xml | |
env: | |
RF_USERNAME: ${{ secrets.RF_USERNAME }} | |
RF_PASSWORD: ${{ secrets.RF_PASSWORD }} | |
RFPARSER_EMAIL: ${{ secrets.RFPARSER_EMAIL }} | |
NBIROS_PUB_EXPORT_XML_URL: ${{ secrets.NBIROS_PUB_EXPORT_XML_URL }} | |
PEOPLE_DATA_CSV_URL: ${{ secrets.PEOPLE_DATA_CSV_URL }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Pubs for website (${{ matrix.python-version }}) | |
path: pubs_for_website.xml |