Skip to content

Commit

Permalink
update actions to skip bib testing for python < 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Apr 19, 2024
1 parent cacf001 commit f9d9143
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/python-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@ jobs:
python -m pip install --upgrade pip setuptools wheel
pip install pytest pytest-cov flake8
# install package & dependencies
- name: Install package and dependencies
run: |
pip install .[bib]
if: ${{ python-version < 3.9 }}
run: pip install .

- name: Install package and dependencies
if: ${{ python-version >= 3.9 }}
run: pip install .[bib]

# linting & pytest
- name: Lint with flake8
Expand Down
4 changes: 4 additions & 0 deletions tests/test_esupy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Test functions"""

import pytest
import sys
from pathlib import Path

import esupy.processed_data_mgmt as es_dt
Expand All @@ -25,6 +27,8 @@ def test_data_commons_access():

assert(df1 is not None and df2 is None)


@pytest.mark.skipif(sys.version_info < (3, 9), reason="bibliographies require python3.9 or higher")
def test_source_generation():
source_list = bibtex.generate_sources(
bib_path = Path(__file__).parents[1] / 'tests' / 'test.bib',
Expand Down

0 comments on commit f9d9143

Please sign in to comment.