Skip to content

Merge pull request #519 from sandialabs/fix-test-packages-failures #53

Merge pull request #519 from sandialabs/fix-test-packages-failures

Merge pull request #519 from sandialabs/fix-test-packages-failures #53

Workflow file for this run

# 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