Skip to content

Commit 8255e6e

Browse files
fixtests (#235)
1 parent 497ad52 commit 8255e6e

File tree

3 files changed

+39
-16
lines changed

3 files changed

+39
-16
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,45 @@
11
name: CompatHelper
2-
32
on:
43
schedule:
5-
- cron: '00 00 * * *'
4+
- cron: 0 0 * * *
65
workflow_dispatch:
7-
6+
permissions:
7+
contents: write
8+
pull-requests: write
89
jobs:
910
CompatHelper:
10-
runs-on: ${{ matrix.os }}
11-
strategy:
12-
matrix:
13-
julia-version: [1.2.0]
14-
julia-arch: [x86]
15-
os: [ubuntu-latest]
11+
runs-on: ubuntu-latest
1612
steps:
17-
- name: Pkg.add("CompatHelper")
18-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
19-
- name: CompatHelper.main()
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v1
19+
with:
20+
version: '1'
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: "Add the General registry via Git"
24+
run: |
25+
import Pkg
26+
ENV["JULIA_PKG_SERVER"] = ""
27+
Pkg.Registry.add("General")
28+
shell: julia --color=yes {0}
29+
- name: "Install CompatHelper"
30+
run: |
31+
import Pkg
32+
name = "CompatHelper"
33+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
34+
version = "3"
35+
Pkg.add(; name, uuid, version)
36+
shell: julia --color=yes {0}
37+
- name: "Run CompatHelper"
38+
run: |
39+
import CompatHelper
40+
CompatHelper.main()
41+
shell: julia --color=yes {0}
2042
env:
2143
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
run: julia -e 'using CompatHelper; CompatHelper.main()'
44+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
45+
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}

.github/workflows/TagBot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77
inputs:
88
lookback:
9-
default: 3
9+
default: "3"
1010
permissions:
1111
actions: read
1212
checks: read
@@ -30,4 +30,4 @@ jobs:
3030
token: ${{ secrets.GITHUB_TOKEN }}
3131
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
3232
ssh: ${{ secrets.DOCUMENTER_KEY }}
33-
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}
33+
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}

src/datasets/text/udenglish.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function __init__udenglish()
2222
""",
2323
"https://raw.githubusercontent.com/UniversalDependencies/UD_English-EWT/master/" .*
2424
[TRAINFILE, DEVFILE, TESTFILE],
25-
"2e94de3333b3b17bd06769ff8c4a81896fabec3ae51a6366f7af82625679f561"))
25+
"43d082e0b277c4758f7ad5d3f7c508078d43e82d4d6fcaa58d0056a6d5576a49"))
2626
end
2727

2828
"""

0 commit comments

Comments
 (0)