Skip to content

Update */Manifest.toml #892

Update */Manifest.toml

Update */Manifest.toml #892

Workflow file for this run

name: Check xfail
on:
pull_request:
jobs:
xfail:
runs-on: ubuntu-latest
strategy:
matrix:
julia-version: ['1.4']
fail-fast: false
name: Test Julia ${{ matrix.julia-version }}
steps:
- uses: actions/checkout@v2
- name: Setup julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- name: Check that test fail
run: |
git_fetch_branch() {
refspec="refs/heads/$1:refs/remotes/origin/$1"
git fetch --unshallow origin "$refspec" || git fetch origin "$refspec"
}
set -ex
xfailbranch=xfail/"${GITHUB_HEAD_REF#refs/heads/}"
if git_fetch_branch "$xfailbranch"
then
git config --global user.email "[email protected]"
git config --global user.name "$GITHUB_ACTOR"
git merge "origin/$xfailbranch"
git log --graph --oneline -n10
julia -e 'using Pkg; pkg"add [email protected]"'
julia -e 'using Run; Run.test(project = "test/environments/main", xfail = true)'
else
echo "No branch named $xfailbranch"
fi
# Note: `$GITHUB_SHA` contains something like "refs/pull/26/merge".
# It seems `$GITHUB_HEAD_REF` contains the correct branch name.
# See also GitHub context `github.head_ref`:
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions#github-context