Skip to content

Commit

Permalink
Add PR check using pip install method.
Browse files Browse the repository at this point in the history
This is necessary because it seems that font differences between the conda
installed version and the pip installed version can change test results.  The
release is done all with pip, and it's vital that the PR process has a step
that is the same as the release process.
  • Loading branch information
erykoff committed Sep 1, 2023
1 parent a31832f commit 98939a2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/python-package-pr-pip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Test using pip (PR)

on:
pull_request:
branches: [ '**' ]

jobs:
build_and_test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
# Need to clone everything to determine version from git.
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: "setup.cfg"

- name: Build and install
run: |
python -m pip install --upgrade pip setuptools
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install .
- name: Run tests
run: |
cd tests
pytest

0 comments on commit 98939a2

Please sign in to comment.