Skip to content

Commit

Permalink
Patch v0.15.0 (#26)
Browse files Browse the repository at this point in the history
* Fixing ammonia molecule and adding symmetric orthogonalization

* Fixing #27: Adding final update to energy vector

* Switching to semantic versioning

* Removing Boost and GLM from workflow and updating tests

* Further pruning Boost and GLM

* Fixing derivatives

* Fixing bug in std::vector

* Removing obsolete code

* Tuning testing values

* Tuning job insertion

* Tuning geometry optimization tolerances

* Tuning

* Tuning tests

* Adding skipping of test

* Refactoring actions

* Removing nose from tests

* Removing OpenMP tests

* Removing OpenMP header file

* Adding OpenMP header only for GCC copmiler

* Also adding header for MSVC

* Changing compilation rules

* Fixing command

* Tuning

* Tuning

* Changing function name to avoid macro overlap

* Skipping 32 bit builds

* Skipping 32 bit builds

* Skipping 32 bit builds

* Skipping Python 3.6

* Removing musllinux

* Skipping test for Mac

* Fixing test patch
  • Loading branch information
ifilot authored Dec 7, 2023
1 parent b687e2f commit 0f4b87a
Show file tree
Hide file tree
Showing 42 changed files with 918 additions and 809 deletions.
145 changes: 0 additions & 145 deletions .github/workflows/build.yml

This file was deleted.

210 changes: 210 additions & 0 deletions .github/workflows/build_conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
name: Build Conda packages

on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- develop
tags:
- "v**"
release:
types:
- published

jobs:
check-version-strings:
runs-on: ubuntu-latest
container: python:3.9.18-slim-bullseye

steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install dependencies
run: |
pip install pyyaml
- name: Test versions
run: |
python testversion.py
#-------------------------------------------------------------------------------
# Anaconda / Windows
#-------------------------------------------------------------------------------
build-anaconda-windows:
needs: check-version-strings
runs-on: windows-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set-up miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false
- name: Set-up MSVC toolchain
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- name: Build
shell: bash -l {0}
run: |
echo $PATH
conda build . --no-include-recipe
- name: Archive packages
uses: actions/upload-artifact@v3
with:
name: anaconda-windows-packages
path: C:\Miniconda\envs\test\conda-bld\win-64\pyqint-*.tar.bz2

anaconda-publish:
name: Publish Anaconda / Windows
if: startsWith(github.ref, 'refs/tags/v')
needs: build-anaconda-windows
runs-on: ubuntu-latest
environment:
name: anaconda
url: https://anaconda.org/ifilot/pyqint
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set-up miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false
- name: Retrieve packages
uses: actions/download-artifact@v3
with:
name: anaconda-windows-packages
path: packages
- name: publish-to-conda
shell: bash -l {0}
env:
INPUT_ANACONDATOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
export ANACONDA_API_TOKEN=$INPUT_ANACONDATOKEN
anaconda upload packages/*.tar.bz2
#-------------------------------------------------------------------------------
# Anaconda / Linux
#-------------------------------------------------------------------------------
build-anaconda-linux:
needs: check-version-strings
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential
- name: Set-up miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false
- name: Build
run: |
conda install conda-build
conda build . --no-include-recipe
- name: Archive packages
uses: actions/upload-artifact@v3
with:
name: anaconda-linux-packages
path: /usr/share/miniconda/conda-bld/linux-64/pyqint-*.tar.bz2

publish-anaconda-linux:
name: Publish Anaconda / Linux
if: startsWith(github.ref, 'refs/tags/v')
needs: build-anaconda-linux
runs-on: ubuntu-latest
environment:
name: anaconda
url: https://anaconda.org/ifilot/pyqint
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set-up miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false
- name: Retrieve packages
uses: actions/download-artifact@v3
with:
name: anaconda-linux-packages
path: packages
- name: publish-to-conda
shell: bash -l {0}
env:
INPUT_ANACONDATOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
export ANACONDA_API_TOKEN=$INPUT_ANACONDATOKEN
anaconda upload packages/*.tar.bz2
#-------------------------------------------------------------------------------
# Anaconda / MacOSx
#-------------------------------------------------------------------------------
build-anaconda-macos:
needs: check-version-strings
runs-on: macos-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set-up miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false
- name: Build
run: |
conda install conda-build
conda build . --no-include-recipe
- name: Archive packages
uses: actions/upload-artifact@v3
with:
name: anaconda-macos-packages
path: /usr/local/miniconda/conda-bld/osx-64/pyqint-*.tar.bz2

publish-anaconda-macos:
name: Publish Anaconda / MacOS
if: startsWith(github.ref, 'refs/tags/v')
needs: build-anaconda-macos
runs-on: ubuntu-latest
environment:
name: anaconda
url: https://anaconda.org/ifilot/pyqint
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set-up miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false
- name: Retrieve packages
uses: actions/download-artifact@v3
with:
name: anaconda-macos-packages
path: packages
- name: publish-to-conda
shell: bash -l {0}
env:
INPUT_ANACONDATOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
export ANACONDA_API_TOKEN=$INPUT_ANACONDATOKEN
anaconda upload packages/*.tar.bz2
Loading

0 comments on commit 0f4b87a

Please sign in to comment.