-
Notifications
You must be signed in to change notification settings - Fork 55
50 lines (39 loc) · 1.38 KB
/
develop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This workflow runs a moderate test suite on develop
# This includes all versions of supported Python, no MacOS, and only unit tests
name: Build and run tests (develop)
on:
push:
branches: [ "develop" ]
workflow_dispatch: # Allow manual running from GitHub
jobs:
build:
strategy:
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: ${{ matrix.use-cython }}
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