add propagate CI back in, but have it be just a test for whether or not is needed, not an automated fix
@@ -76,6 +76,7 @@ jobs:
"slow",
# "binary", # Skip for now
"pyright",
+ "propagate",
]
exclude:
@@ -90,6 +91,8 @@ jobs:
task: "slow"
- os: "windows"
task: "pyright"
+ - os: "windows"
+ task: "propagate"
- os: "windows"
task: "cypress"
@@ -105,6 +108,8 @@ jobs:
task: "binary"
- os: "macos"
task: "pyright"
+ - os: "macos"
+ task: "propagate"
include:
# Version numbers chosen so that highest and lowest Python version is
@@ -123,6 +128,13 @@ jobs:
steps:
- uses: actions/checkout@v2
+ if: matrix.task != 'propagate'
+
+ - uses: actions/checkout@v2
+ if: matrix.task == 'propagate'
+ with:
+ persist-credentials: false
+ fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
@@ -286,11 +298,10 @@ jobs:
## Install remaining packages for pyright
- # TODO: Likely best to make an explicit pyright extra and delete the propagate extra
- name: Install a propagate environment
- if: matrix.task == 'pyright'
+ if: matrix.task == 'pyright' || matrix.task == 'propagate'
run: |
- poetry install -E propagate
+ poetry install -E propagate || poetry lock --no-update && poetry install -E propagate
## Update all packages and then install with tests environment
@@ -345,6 +356,25 @@ jobs:
# -----------------------------------------------------------------------------
+ # TESTS
+
+ ## Propagate
+ - name: See if propagate is needed
+ if: matrix.task == 'propagate'
+ id: propagate-test
+ run: |
+ echo "::set-output name=status::before"
+ poetry run pymedphys dev propagate
+
+ git config --local user.email "propagate-bot@pymedphys.com"
+ git config --local user.name "PyMedPhys Propagate Bot"
+
+ git add poetry.lock
+ git commit -m "commit changes to poetry.lock" || true
+
+ git status
+ git diff-index --quiet HEAD --
+
## Pyright
- name: Install and run pyright
