-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert test matrix back to manual (#111)
* check tests fail * update job name * reset name back to main-tests * rm dev * change python matrix to manual * is codecov the problem here? * dont fail ci for codecov * remove all dynamic python versions * add codecov token? * escape braces * ignore codecov failure? * upgrade act and allow codecov failure again * add more comment to CI * try changing the name of the package * Revert "try changing the name of the package" This reverts commit 57050d2. * assert False * tmp list directory * downgrade act? * rm assert False * pass secret to act * add actions workaround for secret * try oidc? * give up and try editing file to ignore upload failure * Revert "rm assert False" This reverts commit 2601768. * Revert "Revert "rm assert False"" This reverts commit 51bdcff. * Fix CI to fail and run appropriately (#116) * tmp let CI run without codecov * check directory exists * make package and repo name markedly different * tmp add assert False * fix env value? * fix path? * fix var name * add more listing * even more listing * am doofus * rm some temporary changes * add list back in * tmp try fixes to check ci * tmp simplify matrix * allow os * allow mdanalysis versions * use manual python matrix * Revert "tmp try fixes to check ci" This reverts commit 613debe. * Revert "Revert "tmp try fixes to check ci"" This reverts commit 5133e40. * Revert "Revert "Revert "tmp try fixes to check ci""" This reverts commit 38cf157. * try v4 * bump act action? * upgrade versions * why isnt this running? * reorder os? * upgrade act all the way * its called act-latest now? * oops wrong place * add p=false * downgrade codecov back to v4, act back to 0.2.40, see how that goes * Revert "upgrade versions" This reverts commit 2ecd7b0.
- Loading branch information
1 parent
a1a9201
commit 961a9f8
Showing
4 changed files
with
37 additions
and
27 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 |
---|---|---|
|
@@ -20,6 +20,9 @@ inputs: | |
description: email associated with GitHub user | ||
required: true | ||
default: [email protected] | ||
CODECOV_TOKEN: | ||
description: Codecov token | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
|
@@ -54,4 +57,6 @@ runs: | |
shell: bash | ||
run: | | ||
docker images | ||
act --job main-tests --platform ubuntu-latest=act-conda | ||
sed -i -e 's/fail_ci_if_error: true/fail_ci_if_error: false/g' .github/workflows/gh-ci.yaml | ||
cat .github/workflows/gh-ci.yaml | ||
act --job main-tests --platform ubuntu-latest=act-conda -s CODECOV_TOKEN=${{ inputs.CODECOV_TOKEN }} -p=false |
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ defaults: | |
env: | ||
ARTIFACT_NAME: demo-mdakit-repos | ||
OUTPUT_DIRECTORY: /home/runner/example_outputs | ||
OUTPUT_COOKIE_SUBDIRECTORY: TestMDAKit_with_host_MDAnalysis_condaforge-deps_and_ReadTheDocs/mdakit-cookie | ||
GH_USER: github-actions | ||
GH_EMAIL: "[email protected]" | ||
GH_REPOSITORY: "github.com/${{ github.repository }}.git" | ||
|
@@ -60,19 +61,26 @@ jobs: | |
run: | | ||
# --keep-test-outputs also saves the generated repositories | ||
if [[ ${{ matrix.os }} == "ubuntu-latest" ]] ; then | ||
PYTEST_FLAGS="--keep-test-outputs $OUTPUT_DIRECTORY" | ||
PYTEST_FLAGS="--keep-test-outputs ${{ env.OUTPUT_DIRECTORY }}" | ||
else | ||
PYTEST_FLAGS="" | ||
fi | ||
echo "PYTEST_FLAGS=${PYTEST_FLAGS}" | ||
pytest tests/ $PYTEST_FLAGS | ||
- name: check cookie CI presence | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: | | ||
ls -la ${{ env.OUTPUT_DIRECTORY }}/ | ||
ls -la ${{ env.OUTPUT_DIRECTORY }}/${{ env.OUTPUT_COOKIE_SUBDIRECTORY }}/ | ||
- name: Run cookie CI | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
uses: ./.github/actions/run-cookie-ci | ||
with: | ||
source-directory: ${{ env.OUTPUT_DIRECTORY }}/TestMDAKit_with_host_MDAnalysis_condaforge-deps_and_ReadTheDocs/mdakit-cookie | ||
source-directory: ${{ env.OUTPUT_DIRECTORY }}/${{ env.OUTPUT_COOKIE_SUBDIRECTORY }} | ||
CODECOV_TOKEN: ${{ secrets.COOKIE_CODECOV_TOKEN }} | ||
|
||
- name: Upload artifact | ||
if: ${{ matrix.os == 'ubuntu-latest' && matrix.last-n-minor-python-release == 0 }} | ||
|
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