Skip to content

Commit 48365c1

Browse files
Merge pull request #3 from chengchingwen/refactor
Refactor
2 parents 893c5bc + aeba4e2 commit 48365c1

29 files changed

+1126
-737
lines changed

.github/workflows/TagBot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: TagBot
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
jobs:
8+
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: JuliaRegistries/TagBot@v1
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- staging
8+
- trying
9+
tags: '*'
10+
pull_request:
11+
12+
defaults:
13+
run:
14+
shell: bash
15+
16+
jobs:
17+
test:
18+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.julia-threads }} thread(s) - ${{ github.event_name }}
19+
runs-on: ${{ matrix.os }}
20+
env:
21+
JULIA_NUM_THREADS: ${{ matrix.julia-threads }}
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
version:
26+
- '1.5' # Replace this with the minimum Julia version that your package supports.
27+
- '1' # automatically expands to the latest stable 1.x release of Julia
28+
- 'nightly'
29+
os:
30+
- ubuntu-latest
31+
arch:
32+
- x64
33+
julia-threads:
34+
- '1'
35+
36+
include:
37+
- os: windows-latest
38+
version: '1'
39+
arch: x64
40+
julia-threads: '1'
41+
- os: macOS-latest
42+
version: '1'
43+
arch: x64
44+
julia-threads: '1'
45+
- os: ubuntu-latest
46+
version: '1'
47+
arch: x64
48+
julia-threads: '2'
49+
50+
steps:
51+
- uses: actions/checkout@v2
52+
- uses: julia-actions/setup-julia@v1
53+
with:
54+
version: ${{ matrix.version }}
55+
arch: ${{ matrix.arch }}
56+
- uses: actions/cache@v1
57+
env:
58+
cache-name: cache-artifacts
59+
with:
60+
path: ~/.julia/artifacts
61+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
62+
restore-keys: |
63+
${{ runner.os }}-test-${{ env.cache-name }}-
64+
${{ runner.os }}-test-
65+
${{ runner.os }}-
66+
- run: julia --project -e 'using Pkg; Pkg.test(; coverage=true)';
67+
- uses: julia-actions/julia-processcoverage@v1
68+
- uses: codecov/codecov-action@v1
69+
with:
70+
file: lcov.info
71+
72+
docs:
73+
name: Documentation
74+
runs-on: ubuntu-latest
75+
steps:
76+
- uses: actions/checkout@v2
77+
- uses: julia-actions/setup-julia@v1
78+
with:
79+
version: '1'
80+
- run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
81+
Pkg.instantiate()'
82+
- run: julia --project=docs docs/make.jl
83+
env:
84+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

Manifest.toml

Lines changed: 0 additions & 59 deletions
This file was deleted.

Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
name = "BytePairEncoding"
22
uuid = "dac1ee1e-f3b4-11e8-361b-d758976b1eef"
33
authors = ["chengchingwen <[email protected]>"]
4-
version = "0.1.0"
4+
version = "0.2.0"
55

66
[deps]
77
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
88
InternedStrings = "7d512f48-7fb1-5a58-b986-67e6dc259f01"
99
WordTokenizers = "796a5d58-b03d-544a-977e-18100b691f6e"
1010

1111
[compat]
12-
julia = "0.7, 1"
12+
InternedStrings = "0.7"
13+
WordTokenizers = "0.5"
14+
julia = "1.5, 1.6"
1315

1416
[extras]
1517
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

0 commit comments

Comments
 (0)