Fix _ThermoAnalysis._set_globals_and_seq_args
for improper checks o…
#190
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: build, pytest and pre-commit | |
on: [push, pull_request] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
defaults: | |
run: | |
shell: bash -l {0} | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: checkout | |
uses: actions/[email protected] | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest pre-commit | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Test with pytest and then run pre-commit | |
run: > | |
python setup.py build_ext --inplace && | |
pytest && | |
pre-commit run --all-files |