Fixed regression from changes to handling point comparison #98
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
# Perform some basic linting to for syntax errors and undefined names, then run the test suite. | |
name: Tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
container: | |
image: cmacmackin/nekpy:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update PATH | |
run: echo "/opt/view/bin" >> $GITHUB_PATH | |
- name: Cache pip-installed packages | |
uses: actions/cache@v3 | |
with: | |
path: | | |
/usr/local/bin/python3.10/dist-packages/ | |
~/.cache/sphinx_immaterial | |
key: ${{ runner.os }}-${{ hashFiles('setup.py', 'docs/requirements.txt') }} | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r requirements-dev.txt | |
python3 -m pip install . | |
- name: Test with pytest | |
run: | | |
pytest --cov --cov-report=xml --hypothesis-profile ci | |
- name: Upload coverage reports to Codecov with GitHub Action | |
uses: codecov/codecov-action@v3 |