Skip to content

added compat for julia and made compat more lenient #61

added compat for julia and made compat more lenient

added compat for julia and made compat more lenient #61

Workflow file for this run

name: CI
# Run on master, tags, or any pull request
on:
push:
branches: [master]
tags: ["*"]
pull_request:
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.9" # Latest
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@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- run: pip install gym
- run: julia --color=yes --project -e 'using Pkg; pkg\"add https://github.com/ancorso/POMDPGym.jl\"; Pkg.instantiate()'
if: matrix.os == 'windows-latest'
- run: julia --color=yes --project -e 'using Pkg; pkg"add https://github.com/ancorso/POMDPGym.jl"; Pkg.instantiate()'
if: matrix.os != 'windows-latest'
# using a cache can speed up execution times
- uses: actions/cache@v2
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.arch }}-test-
${{ runner.os }}-${{ matrix.arch }}-
${{ runner.os }}-
# build the depencies, run the tests, and upload coverage results
- uses: julia-actions/julia-buildpkg@latest
- run: |
git config --global user.name Tester
git config --global user.email [email protected]
- name: Run Tests
uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: ./lcov.info
flags: unittests
name: codecov-umbrella