Limit number of requests sent to OpenAlex in tests (#44) #213
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-suite | |
on: [push, pull_request] | |
jobs: | |
lint-python: | |
name: lint-python | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
architecture: 'x64' | |
- name: Install ruff | |
run: | | |
pip install ruff | |
- name: Lint python with ruff | |
run: | | |
ruff check . | |
test-master: | |
name: pytest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install packages and run tests | |
run: | | |
python3 -m pip install pip -U | |
pip install pytest | |
pip install . | |
pytest |