-
Notifications
You must be signed in to change notification settings - Fork 10
85 lines (75 loc) · 2.22 KB
/
CI.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI
# Run on master, tags, or any pull request
on:
push:
branches: [master]
tags: ["*"]
pull_request:
permissions:
actions: write
contents: read
jobs:
# unit tests with coverage
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- "1.10"
- "1"
os:
- ubuntu-latest
- windows-latest
arch:
- x64
steps:
# # install CUDA
# - uses: Jimver/[email protected]
# id: cuda-toolkit
# with:
# cuda: '11.2.2'
# check out the project and install Julia
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
# Set up Python 3.10
- uses: actions/setup-python@v4
with:
python-version: '3.10'
# Get Python location and install packages
- run: |
echo "PYTHON=$(which python)" >> $GITHUB_ENV
python -m pip install gym wandb
# Use Julia-specific cache
- uses: julia-actions/cache@v2
# Install POMDPGym and configure PyCall
- run: |
julia --color=yes -e '
using Pkg;
ENV["PYTHON"]="${{ env.PYTHON }}";
ENV["PYCALL_JL_RUNTIME_PYTHON"]="${{ env.PYTHON }}";
Pkg.add("PyCall");
Pkg.build("PyCall");
# Add POMDPGym to test environment
Pkg.activate("test");
Pkg.add(url="https://github.com/ancorso/POMDPGym.jl");
Pkg.activate(".");
Pkg.instantiate();
'
# build the depencies, run the tests, and upload coverage results
- uses: julia-actions/julia-buildpkg@v1
- run: |
git config --global user.name Tester
git config --global user.email [email protected]
- name: Run Tests
uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
file: ./lcov.info
flags: unittests
name: codecov-umbrella