-
Notifications
You must be signed in to change notification settings - Fork 1
Extention to CI capabilities with comparisions between CodeEntropy and MDAnalysis #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
04bd994
Further update to `CI.yaml` file to cross reference compatability of …
harryswift01 bd3655c
small bump up changes for Python and MDAnalysis versions in `pyprojec…
harryswift01 ba0036a
Further refinements to CI:
harryswift01 4b580db
Merge branch 'main' of https://github.com/CCPBioSim/CodeEntropy into …
harryswift01 790f0d9
Further refinements to `CodeEntropy` CI:
harryswift01 5463973
Final tweaks for refined CI structure:
harryswift01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,10 @@ | ||
| --- | ||
| title: CI Failure: MDAnalysis v{{ env.MDA_VERSION }} / Python {{ env.PYTHON_VERSION }} | ||
| labels: CI Failure, MDAnalysis Compatibility | ||
| --- | ||
|
|
||
| ### Automated MDAnalysis Compatibility Test Failure | ||
|
|
||
| **MDAnalysis version**: `{{ env.MDA_VERSION }}` | ||
| **Python version**: `{{ env.PYTHON_VERSION }}` | ||
| **Workflow Run**: [Run #{{ env.RUN_NUMBER }}]({{ env.RUN_URL }}) |
This file contains hidden or 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,115 @@ | ||
| name: CodeEntropy CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| schedule: | ||
| - cron: '0 8 * * 1' | ||
|
|
||
| jobs: | ||
| tests: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.11", "3.12", "3.13"] | ||
| name: Run tests | ||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Install CodeEntropy and its testing dependencies | ||
| run: pip install -e .[testing] | ||
|
|
||
| - name: Run test suite | ||
| run: pytest --cov CodeEntropy --cov-report term-missing --cov-append . | ||
|
|
||
| - name: Coveralls GitHub Action | ||
| uses: coverallsapp/github-action@v2.3.6 | ||
| with: | ||
| github-token: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
|
|
||
| docs: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python 3.12 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: 3.12 | ||
| - name: Install python dependencies | ||
| run: | | ||
| pip install --upgrade pip | ||
| pip install -e .[docs] | ||
| - name: Build docs | ||
| run: cd docs && make | ||
|
|
||
| pre-commit: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python 3.11 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: 3.11 | ||
| - name: Install python dependencies | ||
| run: | | ||
| pip install --upgrade pip | ||
| pip install -e .[pre-commit,docs,testing] | ||
| - name: Run pre-commit | ||
| run: | | ||
| pre-commit install | ||
| pre-commit run --all-files || ( git status --short ; git diff ; exit 1 ) | ||
|
|
||
| mdanalysis-compatibility: | ||
| if: github.event_name == 'schedule' | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.11", "3.12", "3.13"] | ||
| mdanalysis-version: ["2.7.0", "2.8.0", "2.9.0", "latest"] | ||
| name: MDAnalysis Compatibility Tests | ||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Install dependencies with MDAnalysis ${{ matrix.mdanalysis-version }} | ||
| run: | | ||
| pip install --upgrade pip | ||
| pip install -e .[testing] | ||
| if [ "${{ matrix.mdanalysis-version }}" = "latest" ]; then | ||
| pip install MDAnalysis | ||
| else | ||
| pip install "MDAnalysis==${{ matrix.mdanalysis-version }}" | ||
| fi | ||
|
|
||
| - name: Run compatibility tests | ||
| run: pytest --cov CodeEntropy --cov-report=term-missing --cov-append | ||
|
|
||
| - name: Create Issue on Failure | ||
| if: failure() | ||
| uses: JasonEtco/create-an-issue@v2 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| PYTHON_VERSION: ${{ matrix.python-version }} | ||
| MDA_VERSION: ${{ matrix.mdanalysis-version }} | ||
| RUN_NUMBER: ${{ github.run_number }} | ||
| RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
| with: | ||
| filename: .github/mdanalysis-compatibility-failure.md | ||
| update_existing: true | ||
| search_existing: open |
harryswift01 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.