Skip to content

Commit 491b3ce

Browse files
authored
Create a Julia package CompressedSensingIPM.jl (#8)
1 parent acfba10 commit 491b3ce

27 files changed

+741
-1337
lines changed

.github/workflows/Aqua.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Aqua
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: julia-actions/setup-julia@latest
14+
with:
15+
version: '1'
16+
- name: Aqua.jl
17+
run: julia --color=yes -e 'using Pkg; Pkg.add("Aqua"); Pkg.develop(path="."); using Aqua, CompressedSensingIPM; Aqua.test_all(CompressedSensingIPM, ambiguities=false, piracies=false); Aqua.test_ambiguities(CompressedSensingIPM)'

.github/workflows/TagBot.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: TagBot
2+
on:
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
23+
jobs:
24+
TagBot:
25+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: JuliaRegistries/TagBot@v1
29+
with:
30+
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/action.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags: '*'
8+
pull_request:
9+
types: [opened, synchronize, reopened]
10+
schedule:
11+
- cron: '0 0 * * 0'
12+
13+
jobs:
14+
test-cpu:
15+
env:
16+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
matrix:
21+
os: [ubuntu-22.04]
22+
julia-version: ['lts', '1']
23+
julia-arch: [x64]
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: julia-actions/setup-julia@latest
28+
with:
29+
version: ${{ matrix.julia-version }}
30+
- uses: julia-actions/julia-buildpkg@latest
31+
- uses: julia-actions/julia-runtest@latest
32+
33+
test-gpu:
34+
env:
35+
CUDA_VISIBLE_DEVICES: 1
36+
JULIA_DEPOT_PATH: /scratch/github-actions/julia_depot_CompressedSensingIPM
37+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
runs-on: self-hosted
40+
strategy:
41+
matrix:
42+
os: [ubuntu-22.04]
43+
julia-version: ['lts', '1']
44+
julia-arch: [x64]
45+
46+
steps:
47+
- uses: actions/checkout@v4
48+
- uses: julia-actions/setup-julia@latest
49+
with:
50+
version: ${{ matrix.julia-version }}
51+
arch: ${{ matrix.julia-arch }}
52+
- uses: julia-actions/julia-buildpkg@latest
53+
- uses: julia-actions/julia-runtest@latest
54+
# - run: julia --project=docs/ docs/make.jl
55+
- uses: julia-actions/julia-processcoverage@v1
56+
- uses: codecov/codecov-action@v2
57+
with:
58+
file: lcov.info

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Manifest.toml
2+
docs/build
3+
*.log
4+

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Alexis Montoison, François Pacaud, Vishwas Rao
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)