Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,24 +89,24 @@ jobs:
if: always()

- name: Upload nopyscf test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: tangelo-no-pyscf-test-results
path: tangelo/toolboxes/molecular_computation/tests/junit/nopyscf-test-results_${{ matrix.python-version }}.xml

- name: Upload pytest test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: tangelo-test-results
path: tangelo/junit/tangelo-test-results_${{ matrix.python-version }}.xml

- name: Upload pytest html results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: tangelo-tests-coverage_${{ matrix.python-version }}
path: tangelo/htmlcov
if: always()

- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
if: always()
25 changes: 8 additions & 17 deletions .github/workflows/create_release_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,35 @@ on:
workflow_dispatch:
inputs:
versionName:
description: 'Name of version (ie 5.5.0)'
description: 'Name of version (ie 5.5.0)'
required: true
jobs:
createrelease:
runs-on: ubuntu-latest

env:
VERSION: ${{ github.event.inputs.versionName }}
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Create release branch
run: git checkout -b release/v${{ github.event.inputs.versionName }}
run: git checkout -b "release/v${VERSION}"
- name: Initialize mandatory git config
run: |
git config user.name "GitHub Actions"
git config user.email noreply@github.com
- name: Change version number and name
run: |
sed -i 's/__version__ = .*/__version__ = "${{ github.event.inputs.versionName }}"/' tangelo/_version.py
sed -i "s/__version__ = .*/__version__ = \"${VERSION}\"/" tangelo/_version.py
git commit tangelo/_version.py --message "Bumping Tangelo version number in _version.py"
# - name: Update Changelog
# uses: thomaseizinger/keep-a-changelog-new-release@v1
# with:
# version: ${{ github.event.inputs.versionName }}
# - name: Commit changelog and manifest files
# id: make-commit
# run: |
# git add CHANGELOG.md
# git commit --message "Prepare release ${{ github.event.inputs.versionName }}"
# echo "::set-output name=commit::$(git rev-parse HEAD)"
- name: Push new branch
run: git push origin release/v${{ github.event.inputs.versionName }}
run: git push origin "release/v${VERSION}"
- name: Create pull request into main
uses: thomaseizinger/create-pull-request@1.0.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
head: release/v${{ github.event.inputs.versionName }}
head: release/v${{ env.VERSION }}
base: main
title: New release v${{ github.event.inputs.versionName }} into main
title: New release v${{ env.VERSION }} into main
reviewers: ${{ github.event.issue.user.login }}
body: |
This PR was created in response to "create_release_branch" workflow running.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run_psi4_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ jobs:
if: always()

- name: Upload psi4 test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: tangelo-psi4-test-results
path: tangelo/toolboxes/molecular_computation/tests/junit/psi4-test-results_${{ matrix.python-version }}.xml

- name: Upload classical psi4 test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: tangelo-classical-psi4-test-results
path: tangelo/algorithms/classical/tests/junit/psi4-classical-test-results_${{ matrix.python-version }}.xml

- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
if: always()
Loading