Skip to content

Commit

Permalink
Merge pull request #36 from alyst/gh_actions_ci
Browse files Browse the repository at this point in the history
Add GitHub Actions-based CI
  • Loading branch information
quinnj authored Jan 26, 2021
2 parents 76c5640 + d9dc9bc commit f0db78b
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.0'
- '1' # automatically expands to the latest stable 1.x release of Julia
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
include:
- os: windows-latest
version: '1'
arch: x86
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
2 changes: 2 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
17 changes: 17 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Documenter, DBInterface

makedocs(;
modules=[DBInterface],
format=Documenter.HTML(),
pages=[
"Home" => "index.md",
],
repo="https://github.com/JuliaDatabases/DBInterface.jl/blob/{commit}{path}#L{line}",
sitename="DBInterface.jl",
authors="Jacob Quinn",
assets=String[],
)

deploydocs(;
repo="github.com/JuliaDatabases/DBInterface.jl",
)
26 changes: 26 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# DBInterface.jl Documentation

```@contents
```
*DBInterface.jl* provides interface definitions to allow common database operations to be implemented consistently
across various database packages.

## Functions
```@docs
DBInterface.connect
DBInterface.prepare
DBInterface.@prepare
DBInterface.execute
DBInterface.executemany
DBInterface.executemultiple
DBInterface.close!
DBInterface.lastrowid
```

## Types

```@docs
DBInterface.Connection
DBInterface.Statement
DBInterface.Cursor
```

0 comments on commit f0db78b

Please sign in to comment.