some fixes and refinements in documentation #65
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
name: Test package | |
on: | |
push: | |
branches: [main] | |
workflow_call: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
test_package: | |
strategy: | |
matrix: | |
python-version: ['3.10', '3.12'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{matrix.os}} | |
env: | |
INSTALL_ENDF_PARSERPY_CPP: yes | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: ${{matrix.python-version}} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install "poetry>=1.2,<1.8" | |
- name: Set endf-parserpy version based on git tag | |
run: poetry version $(git describe --tags --abbrev=0) | |
- name: Install package and dependencies | |
run: poetry install --with dev | |
- name: Run tests | |
run: poetry run pytest |