ci: Migrate CI from Azure Pipelines to GitHub Actions (#233)

Migrated CI from Azure Pipelines to GitHub Actions.
Until the release process is figured out in Actions, we'll stick to using Azure pipelines for releases.
This commit is contained in:
Matan Kushner
2019-09-04 19:13:53 -04:00
committed by GitHub
parent 68754208c1
commit e66d7bae1c
15 changed files with 108 additions and 234 deletions
-40
View File
@@ -4,7 +4,6 @@ use std::io;
use ansi_term::Color;
use crate::common;
use crate::common::TestCommand;
#[test]
#[ignore]
@@ -110,42 +109,3 @@ fn with_virtual_env() -> io::Result<()> {
assert_eq!(expected, actual);
Ok(())
}
#[test]
#[ignore]
fn with_pyenv() -> io::Result<()> {
let dir = common::new_tempdir()?;
File::create(dir.path().join("main.py"))?;
let output = common::render_module("python")
.use_config(toml::toml! {
[python]
pyenv_version_name = true
})
.env("VIRTUAL_ENV", "/foo/bar/my_venv")
.arg("--path")
.arg(dir.path())
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 pyenv system"));
assert_eq!(expected, actual);
Ok(())
}
#[test]
#[ignore]
fn with_pyenv_no_output() -> io::Result<()> {
let dir = common::new_tempdir()?;
File::create(dir.path().join("main.py"))?;
let output = common::render_module("python")
.use_config(toml::toml! {
[python]
pyenv_version_name = true
})
.env("PATH", "")
.arg("--path")
.arg(dir.path())
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
assert_eq!("", actual);
Ok(())
}