-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (59 loc) · 1.98 KB
/
py.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Bench Sparse
on:
workflow_dispatch:
env:
JULIA_CACHE: '1'
JULIA_NUM_THREADS: 'auto'
jobs:
Julia:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Setup Julia
uses: julia-actions/[email protected]
with:
version: '1.8.5'
- name: Cache Julia dependencies
uses: actions/cache@v3
if: ${{ env.JULIA_CACHE != '0'}}
with:
path: ~/.julia
key: ${{ runner.os }}-julia-${{ env.JULIA_CACHE }}-${{ hashFiles('**/Manifest.toml') }}
- name: Install Julia dependencies
env:
JULIA_PROJECT: ${{ github.workspace }}
run: julia --color=yes -e 'import Pkg; Pkg.instantiate(); Pkg.resolve(); Pkg.precompile()'
- name: Julia Run
env:
JULIA_PROJECT: ${{ github.workspace }}
run: |
julia -e 'println("Hello, World!"); ENV; println(ENV)'
julia --project hellopython.jl
Python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Python Run
run: |
which python3
python helloworld.py
echo "### Test complete :fireworks:" >> $GITHUB_STEP_SUMMARY