Skip to content

Commit 2868426

Browse files
authored
Merge pull request #21 from rssdev10/fix/package_update
updated project format
2 parents 86f2bf6 + 3f15c3d commit 2868426

File tree

7 files changed

+150
-66
lines changed

7 files changed

+150
-66
lines changed

.github/workflows/CompatHelper.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CompatHelper
2+
on:
3+
schedule:
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
jobs:
10+
CompatHelper:
11+
runs-on: ubuntu-latest
12+
steps:
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}
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
45+
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}

.github/workflows/TagBot.yml

+24-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,33 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 0 * * * *
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: 3
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
523
jobs:
624
TagBot:
25+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
726
runs-on: ubuntu-latest
827
steps:
928
- uses: JuliaRegistries/TagBot@v1
1029
with:
1130
token: ${{ secrets.GITHUB_TOKEN }}
31+
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
32+
ssh: ${{ secrets.DOCUMENTER_KEY }}
33+
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}

.github/workflows/ci.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main, master]
5+
tags: ["*"]
6+
pull_request:
7+
jobs:
8+
test:
9+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
version:
15+
- '1' # automatically expands to the latest stable 1.x release of Julia
16+
- nightly
17+
os:
18+
- ubuntu-latest
19+
arch:
20+
- x64
21+
- x86
22+
include:
23+
# test macOS and Windows with latest Julia only
24+
- os: macOS-latest
25+
arch: x64
26+
version: 1
27+
- os: windows-latest
28+
arch: x64
29+
version: 1
30+
- os: windows-latest
31+
arch: x86
32+
version: 1
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: julia-actions/setup-julia@v1
36+
with:
37+
version: ${{ matrix.version }}
38+
arch: ${{ matrix.arch }}
39+
- uses: actions/cache@v1
40+
env:
41+
cache-name: cache-artifacts
42+
with:
43+
path: ~/.julia/artifacts
44+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
45+
restore-keys: |
46+
${{ runner.os }}-test-${{ env.cache-name }}-
47+
${{ runner.os }}-test-
48+
${{ runner.os }}-
49+
- uses: julia-actions/julia-buildpkg@v1
50+
- uses: julia-actions/julia-runtest@v1
51+
- uses: julia-actions/julia-processcoverage@v1
52+
- uses: codecov/codecov-action@v2
53+
with:
54+
files: lcov.info
55+
docs:
56+
name: Documentation
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v2
60+
- uses: julia-actions/julia-buildpkg@latest
61+
- uses: julia-actions/julia-docdeploy@latest
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

-18
This file was deleted.

Project.toml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name = "WordNet"
2+
uuid = "183c3083-7300-49a2-bdc9-6d3e0b8f145b"
3+
authors = ["Contributors..."]
4+
version = "0.2.3"
5+
6+
[compat]
7+
DataDeps = "0.7"
8+
julia = "1"
9+
10+
[deps]
11+
DataDeps = "124859b0-ceae-595e-8997-d05f6a7a8dfe"
12+
13+
[extras]
14+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
15+
16+
[targets]
17+
test = ["Test"]

REQUIRE

-3
This file was deleted.

appveyor.yml

-43
This file was deleted.

0 commit comments

Comments
 (0)