Skip to content

Commit

Permalink
Complete previous merge
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelma committed Nov 22, 2024
1 parent a94f55f commit cc712a5
Show file tree
Hide file tree
Showing 5 changed files with 973 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CompatHelper
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Check if Julia is already available in the PATH
id: julia_in_path
run: which julia
continue-on-error: true
- name: Install Julia, but only if it is not already available in the PATH
uses: julia-actions/setup-julia@v2
with:
version: '1'
arch: ${{ runner.arch }}
if: steps.julia_in_path.outcome != 'success'
- name: "Add the General registry via Git"
run: |
import Pkg
ENV["JULIA_PKG_SERVER"] = ""
Pkg.Registry.add("General")
shell: julia --color=yes {0}
- name: "Install CompatHelper"
run: |
import Pkg
name = "CompatHelper"
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
version = "3"
Pkg.add(; name, uuid, version)
shell: julia --color=yes {0}
- name: "Run CompatHelper"
run: |
import CompatHelper
CompatHelper.main()
shell: julia --color=yes {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
31 changes: 31 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: TagBot
on:
issue_comment:
types:
- created
workflow_dispatch:
inputs:
lookback:
default: "3"
permissions:
actions: read
checks: read
contents: write
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
58 changes: 58 additions & 0 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Test
on:
workflow_call:
inputs:
host-os:
required: true
type: string
julia-version:
required: true
type: string
python-version:
required: true
type: string
repository:
required: false
type: string
default: ${{ github.repository }}
spinedb-api-ref-name:
required: false
type: string
default: 'master'
coverage:
required: false
type: boolean
default: true
secrets:
CODECOV_TOKEN:
required: true

jobs:
test:
name: Julia ${{ inputs.julia-version }} - ${{ inputs.host-os }}
runs-on: ${{ inputs.host-os }}
steps:
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- uses: julia-actions/setup-julia@v2
with:
version: ${{ inputs.julia-version }}
arch: x64
- name: Install spinedb_api
run:
julia ./.install_spinedb_api.jl ${{ inputs.spinedb-api-ref-name }}
env:
PYTHON: python
- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@v1
if: inputs.coverage && inputs.julia-version == '1' && inputs.host-os == 'ubuntu-latest'
- uses: codecov/codecov-action@v4
if: inputs.coverage && inputs.julia-version == '1' && inputs.host-os == 'ubuntu-latest'
with:
file: lcov.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Loading

0 comments on commit cc712a5

Please sign in to comment.