Skip to content

Commit

Permalink
Merge pull request #33 from NREL/pp/fix_gha
Browse files Browse the repository at this point in the history
Fix ords GHA
  • Loading branch information
grantbuster authored Oct 16, 2024
2 parents ad0f9c4 + 06c706c commit e550adf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pytest_ords.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ jobs:
channels: conda-forge,defaults
python-version: ${{ matrix.python-version }}
miniconda-version: "latest"
- name: Install Poppler Reqs
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get update
sudo apt-get install libpoppler-cpp-dev
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install poppler
fi
shell: bash
- name: Install dependencies
shell: bash -l {0}
run: |
Expand All @@ -32,6 +41,8 @@ jobs:
python -m pip install pytest
python -m pip install pytest-mock
python -m pip install pytest-cov
python -m pip install psycopg2-binary
python -m pip install boto3
python -m pip install .
playwright install
- name: Run pytest and Generate coverage report
Expand All @@ -40,6 +51,7 @@ jobs:
python -m pytest -v --disable-warnings --cov=./ --cov-report=xml:coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
if: matrix.os == 'ubuntu-latest'
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
Expand Down

0 comments on commit e550adf

Please sign in to comment.