Skip to content

Merge pull request #47 from ChrisRackauckas-Claude/fix-vararg-error #92

Merge pull request #47 from ChrisRackauckas-Claude/fix-vararg-error

Merge pull request #47 from ChrisRackauckas-Claude/fix-vararg-error #92

Workflow file for this run

name: CI
on:
pull_request:
branches:
- master
- main
paths-ignore:
- 'docs/**'
push:
branches:
- master
- main
paths-ignore:
- 'docs/**'
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.10'
- '1'
- 'pre'
os:
- ubuntu-latest
- macos-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- name: Run tests julia 1.11 ubuntu-latest and count rules
if: matrix.version == '1' && matrix.os == 'ubuntu-latest'
run: |
julia --project=. -e "
using SymbolicIntegration
using Pkg
rules_count = length(SymbolicIntegration.RULES)
println(\"Total rules: \$rules_count\")
# Create directory if it doesn't exist
mkpath(\".github/badges\")
# Write the JSON file manually
open(\".github/badges/rules-count.json\", \"w\") do f
println(f, \"{\")
println(f, \" \\\"schemaVersion\\\": 1,\")
println(f, \" \\\"label\\\": \\\"Total rules\\\",\")
println(f, \" \\\"message\\\": \\\"\$rules_count\\\",\")
println(f, \" \\\"color\\\": \\\"blue\\\"\")
println(f, \"}\")
end
println(\"Badge data written to .github/badges/rules-count.json\")
Pkg.test()
"
id: count_rules
- name: Commit badge data
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .github/badges/rules-count.json
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "Update rules count badge [skip ci]"
git push
fi
- name: Run tests (other configurations)
if: ${{ !(matrix.version == '1' && matrix.os == 'ubuntu-latest') }}
uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v5
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false