bumped version #56
This file contains hidden or 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: Python package | |
on: [push] | |
# if we wanted to build the unit list in the CI | |
# But it is auto-built by the tests anyway | |
# And this would only work if we can figure out how to push | |
# on: | |
# push: | |
# # branches: | |
# # - master | |
# paths-ignore: | |
# - 'NUCOS_unit_list.rst' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: Test with pytest | |
run: | | |
pip install pytest | |
pip install ./ | |
pytest --pyargs nucos | |
- name: Check for Debug prints | |
run: python check_for_prints.py | |
# - name: Write unit file | |
# run: | | |
# # not needed -- build by the tests | |
# # and this fails is there are no changes, as the git command returns 1 | |
# # python -c "import nucos; nucos.unit_data.all_unit_names()" | |
# git config --global user.email "pynucos_ci@nothing" | |
# git config --global user.name "PyNUCOS CI" | |
# git add NUCOS_unit_list.rst | |
# git commit -m "updated the NUCOS unit list" | |
# if [ "${1}" -eq "0" ]; then | |
# git push | |
# fi | |