Merge pull request #515 from sandialabs/simplify-TimeIndependentMDCOb… #54
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 runs a moderate test suite on develop | |
# This includes all versions of supported Python, no MacOS, only unit tests, | |
# and only tests environments with Cython in them | |
name: Build and run tests (develop) | |
on: | |
push: | |
branches: [ "develop" ] | |
workflow_dispatch: # Allow manual running from GitHub | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] # No Mac | |
python-version: [3.8, 3.9, '3.10', '3.11'] | |
use-cython: ['true', 'false'] | |
uses: ./.github/workflows/reuseable-main.yml | |
name: Run pyGSTi tests | |
with: | |
os: ${{ matrix.os }} | |
python-version: ${{ matrix.python-version }} | |
use-cython: 'true' # Cython only | |
run-unit-tests: 'true' | |
run-extra-tests: 'false' # No integration tests | |
run-notebook-tests: 'false' # No notebook tests | |
push: # Push to stable "beta" branch on successful build | |
runs-on: ubuntu-latest | |
# Only run on "develop" branch if tests pass | |
needs: build | |
if: github.ref == 'refs/heads/develop' && github.event_name == 'push' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PYGSTI_TOKEN }} | |
- name: Merge changes to beta branch | |
run: | | |
git config --global user.name 'PyGSTi' | |
git config --global user.email '[email protected]' | |
git checkout beta | |
git merge --ff-only ${GITHUB_SHA} && git push origin beta | |