-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '07b72a402d2e74f2a5a99ba2621f08364fd517ba' into ammr4-beta
- Loading branch information
Showing
30 changed files
with
748 additions
and
562 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 |
---|---|---|
|
@@ -28,17 +28,17 @@ jobs: | |
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }} | ||
|
||
- name: Link check | ||
shell: pixi run -e docs bash {0} | ||
run: | | ||
cd Docs | ||
pixi run -e docs \ | ||
sphinx-build -M linkcheck . _build -W --keep-going -a -q | ||
sphinx-build -M linkcheck . _build -W --keep-going -a -q | ||
- name: Build Documentation | ||
shell: pixi run -e docs bash {0} | ||
run: | | ||
cd Docs | ||
pixi run -e docs clean | ||
pixi run -e docs \ | ||
sphinx-build -M html . _build -W --keep-going -a -t draft | ||
rm -rf _build | ||
sphinx-build -M html . _build -W --keep-going -a -t draft | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
|
@@ -61,31 +61,16 @@ jobs: | |
git checkout $(git describe --tags `git rev-list --tags=ammr* --max-count=1`); | ||
- uses: prefix-dev/[email protected] | ||
continue-on-error: true | ||
id: pixisetup | ||
with: | ||
environments: docs | ||
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }} | ||
|
||
- name: Build Documentation | ||
if: steps.pixisetup.outcome == 'success' | ||
shell: pixi run -e docs bash {0} | ||
run: | | ||
cd Docs | ||
pixi run -e docs \ | ||
sphinx-build -M html . _build -a | ||
# Fall back to mamba when buildig old versions | ||
- name: Install mamba | ||
if: steps.pixisetup.outcome == 'failure' | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: Docs/environment.yaml | ||
|
||
- name: build with mamba | ||
if: steps.pixisetup.outcome == 'failure' | ||
shell: bash -leo pipefail {0} {0} | ||
run: sphinx-build -M html Docs Docs/_build -a | ||
|
||
sphinx-build -M html . _build -a | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: tagged-version | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,12 @@ name: Nightly Full AMMR tests | |
on: | ||
schedule: | ||
- cron: 0 3 * * * | ||
workflow_dispatch: {} | ||
workflow_dispatch: | ||
inputs: | ||
force-update-durations: | ||
type: boolean | ||
description: 'Force creation of new .test-duration files and create a PR with them. Default is false.' | ||
default: false | ||
|
||
|
||
concurrency: | ||
|
@@ -19,7 +24,6 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
ams_version: ["8.0_Beta"] | ||
test_group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | ||
|
||
env: | ||
|
@@ -36,17 +40,18 @@ jobs: | |
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }} | ||
|
||
- name: Run full AMMR tests | ||
env: | ||
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_PASSWORD }} | ||
RLM_LICENSE: ${{ secrets.LICENSE_SERVER }} | ||
run: | | ||
cd Tests | ||
pixi run -e test ` | ||
pytest -n auto --dist worksteal ` | ||
pytest -n auto --dist worksteal ` | ||
--splits 10 --group ${{ matrix.test_group }} --splitting-algorithm=least_duration ` | ||
--durations=20 ` | ||
--store-durations --clean-durations ` | ||
--runslow | ||
shell: pwsh -command "pixi run -e test pwsh '{0}'" | ||
|
||
env: | ||
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_PASSWORD }} | ||
RLM_LICENSE: ${{ secrets.LICENSE_SERVER }} | ||
|
||
- name: Upload partial durations | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -60,35 +65,38 @@ jobs: | |
test-linux: | ||
if: github.repository == 'anybody/ammr' | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/anybody/anybodycon-github-actions:${{ matrix.ams_version }} | ||
container: ghcr.io/anybody/anybodycon-github-actions:8.0 | ||
env: | ||
ANYBODY_SUPPRESS_DEPRECATION_MESSAGES: ${{ fromJSON('{"7.4":"Off","7.5_Beta":"On"}')[matrix.ams_version] }} | ||
ANYBODY_SUPPRESS_DEPRECATION_MESSAGES: "Off" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ams_version: ["7.4", "8.0_Beta"] | ||
test_group: [1, 2, 3, 4, 5] | ||
test_group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ fromJSON('{"7.4":"master-ammr-2.4.x","8.0_Beta":"master"}')[matrix.ams_version] }} | ||
|
||
- name: Set debug env vars | ||
run: echo ${{ github.event.inputs.debug_config }} >> $GITHUB_ENV | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
environments: test | ||
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }} | ||
|
||
- name: Run tests | ||
run: | | ||
cd Tests | ||
pytest -n auto \ | ||
--splits 10 --group ${{ matrix.test_group }} --splitting-algorithm=least_duration \ | ||
--only-load \ | ||
--runslow | ||
shell: pixi run -e test bash {0} | ||
env: | ||
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_PASSWORD }} | ||
RLM_LICENSE: ${{ secrets.LICENSE_SERVER }} | ||
run: | | ||
cd Tests | ||
pytest -n auto \ | ||
--splits 5 --group ${{ matrix.test_group }} --splitting-algorithm=least_duration \ | ||
--only-load \ | ||
--runslow | ||
|
||
|
||
combine-and-upload-timings: | ||
runs-on: ubuntu-latest | ||
|
@@ -108,7 +116,7 @@ jobs: | |
data.update(json.loads(file.read_text())) | ||
data = {k: v for k, v in sorted(data.items(), key=lambda x: x[1], reverse=True)} | ||
test_durations = pathlib.Path('Tests/.test_durations') | ||
if set(data) != set(json.loads(test_durations.read_text())): | ||
if set(data) != set(json.loads(test_durations.read_text())) or "${{ github.event.inputs.force-update-durations }}" == "true": | ||
test_durations.write_text(json.dumps(data, indent=2)) | ||
shell: python | ||
|
||
|
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.