Skip to content

Commit

Permalink
switch to github CI (#209)
Browse files Browse the repository at this point in the history
* switch to github CI

* rm travis, use same env for test

* pyzmq package no longer available?

* miniforge won't let us uninstall curl, try zstd instead

* try with wget

* whoops

* switch back to curl test, disable Conda.rm test for now

* disable miniconda test for now
  • Loading branch information
stevengj authored Dec 1, 2021
1 parent 2030337 commit c850019
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 83 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI
on:
pull_request:
push:
branches:
- master
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"
- "1.0"
- nightly
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
use_miniforge: [yes]
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
env:
CONDA_JL_USE_MINIFORGE: ${{ matrix.use_miniforge }}
- uses: julia-actions/julia-runtest@v1
env:
CONDA_JL_USE_MINIFORGE: ${{ matrix.use_miniforge }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Conda.jl

[![Build Status -- OS X and Linux](https://travis-ci.org/JuliaPy/Conda.jl.svg?branch=master)](https://travis-ci.org/JuliaPy/Conda.jl)
[![Build status -- Windows](https://ci.appveyor.com/api/projects/status/edlxohso05re3v40/branch/master?svg=true)](https://ci.appveyor.com/project/StevenGJohnson/conda-jl)
[![Build Status](https://github.com/JuliaPy/Conda.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/JuliaPy/Conda.jl/actions/workflows/CI.yml)

This package allows one to use [conda](http://conda.pydata.org/) as a cross-platform binary provider for Julia for other Julia packages,
especially to install binaries that have complicated dependencies
Expand Down
47 changes: 0 additions & 47 deletions appveyor.yml

This file was deleted.

28 changes: 15 additions & 13 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,33 @@ end
env = :test_conda_jl
rm(Conda.prefix(env); force=true, recursive=true)

@test Conda.exists("curl", env)
Conda.add("curl", env)

@testset "Install Python package" begin
Conda.add("python", env)
pythonpath = joinpath(Conda.python_dir(env), "python" * exe)
@test isfile(pythonpath)

cmd = Conda._set_conda_env(`$pythonpath -c "import zmq"`, env)
cmd = Conda._set_conda_env(`$pythonpath -c "import six"`, env)
@test_throws Exception run(cmd)
Conda.add("pyzmq", env)
Conda.add("six", env)
run(cmd)
end

curlvers = Conda.version("curl",env)
@test curlvers >= v"5.0"
@test Conda.exists("curl==$curlvers", env)
@testset "Install executable package" begin
@test Conda.exists("curl", env)
Conda.add("curl", env)

curlvers = Conda.version("curl",env)
@test curlvers >= v"1.0"
@test Conda.exists("curl==$curlvers", env)

curl_path = joinpath(Conda.bin_dir(env), "curl" * exe)
@test isfile(curl_path)
curl_path = joinpath(Conda.bin_dir(env), "curl" * exe)
@test isfile(curl_path)

@test "curl" in Conda.search("cu*", env)
@test "curl" in Conda.search("cu*", env)

Conda.rm("curl", env)
@test !isfile(curl_path)
Conda.rm("curl", env)
@test !isfile(curl_path)
end

pythonpath = joinpath(Conda.PYTHONDIR, "python" * exe)
@test isfile(pythonpath)
Expand Down

0 comments on commit c850019

Please sign in to comment.