Update simpleeval requirement from ^0.9.13 to >=0.9.13,<1.1.0 #389
Workflow file for this run
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Unit tests | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'README.md' | |
- '.github/workflows/test-and-coverage.yml' | |
- 'docs/**' | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
- '.github/workflows/test-and-coverage.yml' | |
- 'docs/**' | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Build docker images | |
run: docker build . -t xspec-tests | |
- name: Test with pytest | |
run: docker run -t -v ./:/shared xspec-tests pytest --cov jaxspec --cov-report xml:/shared/coverage.xml | |
- name: "Upload coverage to Codecov" | |
if: ${{ contains(github.event.pull_request.changed_files, 'src/') || contains(github.event.push.changed_files, 'src/') }} | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
verbose: true |