-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add/performance_tests
- Loading branch information
Showing
215 changed files
with
68,538 additions
and
3,662 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
branches: | ||
- "main" | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
test: | ||
if: github.event.pull_request.draft == false | ||
name: GMSO Tests | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macOS-latest, ubuntu-latest] | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
pydantic-version: ["2"] | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
name: Checkout Branch / Pull Request | ||
|
||
- name: Install Mamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: environment-dev.yml | ||
create-args: >- | ||
python=${{ matrix.python-version }} | ||
pydantic=${{ matrix.pydantic-version }} | ||
- name: Install Package | ||
run: python -m pip install -e . | ||
|
||
- name: Test (OS -> ${{ matrix.os }} / Python -> ${{ matrix.python-version }}) | ||
run: python -m pytest -v --cov=gmso --cov-report=xml --cov-append --cov-config=setup.cfg --color yes --pyargs gmso | ||
|
||
- name: Upload Coverage Report | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
name: GMSO-Coverage | ||
verbose: true | ||
|
||
bleeding-edge-test: | ||
if: github.event.pull_request.draft == false | ||
name: Bleeding Edge mosdef Tests for GMSO | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
name: Checkout Branch / Pull Request | ||
|
||
- name: Install Mamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: environment-dev.yml | ||
python-version: python="3.10" | ||
|
||
- name: Clone mBuild and Foyer and forcefield-utilities | ||
run: | | ||
git clone https://github.com/mosdef-hub/mbuild.git | ||
git clone https://github.com/mosdef-hub/foyer.git | ||
git clone https://github.com/mosdef-hub/forcefield-utilities.git | ||
- name: Update Environment with mbuild/foyer/ffutils Dependencies | ||
run: | | ||
micromamba update --name gmso-dev --file mbuild/environment.yml | ||
micromamba update --name gmso-dev --file foyer/environment.yml | ||
micromamba update --name gmso-dev --file forcefield-utilities/environment-dev.yml | ||
- name: Install Packages from Source | ||
run: | | ||
pip install -e mbuild | ||
pip install -e foyer | ||
pip install -e forcefield-utilities | ||
pip install -e . | ||
- name: Run Bleeding Edge Tests | ||
run: | | ||
python -m pytest -v --color yes --pyargs gmso | ||
docker: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
name: Build Docker Image | ||
if: ${{ false }} | ||
|
||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
- name: Get Tagged Version | ||
run: | | ||
echo "DOCKER_TAGS=mosdef-gmso-${CI_COMMIT_REF_SLUG}, mosdef-gmso-stable" >> $GITHUB_ENV | ||
if: github.ref_type == 'tag' | ||
|
||
- name: Get Push Version | ||
run: | | ||
echo "DOCKER_TAGS=mosdef-gmso-${CI_COMMIT_REF_SLUG}, mosdef-gmso-latest" >> $GITHUB_ENV | ||
if: github.ref_type == 'branch' | ||
|
||
- name: Docker Image Info | ||
run: | | ||
echo Docker Image tags: ${DOCKER_TAGS} | ||
- name: Build and Push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: ${{ env.DOCKER_TAGS }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: "41 4 * * 6" | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ python ] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
queries: +security-and-quality | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{ matrix.language }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
*.py[cod] | ||
*.ipynb_checkpoints | ||
.pymon | ||
test-output.xml | ||
|
||
# C extensions | ||
*.so | ||
|
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 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 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 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
Oops, something went wrong.