Skip to content

Commit

Permalink
ci: upgrade Python for integration tests (starship#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
matchai authored May 21, 2020
1 parent c008f40 commit a670e01
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
# Install Python at a fixed version
- uses: actions/setup-python@v1
with:
python-version: "3.8.2"
python-version: "3.7.7"

# Install dotnet at a fixed version
- uses: actions/setup-dotnet@v1
Expand Down
22 changes: 11 additions & 11 deletions tests/testsuite/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn folder_with_python_version() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();

let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.8.2"));
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.7.7"));
assert_eq!(expected, actual);
dir.close()
}
Expand All @@ -49,7 +49,7 @@ fn folder_with_requirements_txt() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();

let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.8.2"));
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.7.7"));
assert_eq!(expected, actual);
dir.close()
}
Expand All @@ -66,7 +66,7 @@ fn folder_with_pyproject_toml() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();

let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.8.2"));
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.7.7"));
assert_eq!(expected, actual);
dir.close()
}
Expand All @@ -83,7 +83,7 @@ fn folder_with_pipfile() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();

let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.8.2"));
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.7.7"));
assert_eq!(expected, actual);
dir.close()
}
Expand All @@ -100,7 +100,7 @@ fn folder_with_tox() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();

let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.8.2"));
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.7.7"));
assert_eq!(expected, actual);
dir.close()
}
Expand All @@ -117,7 +117,7 @@ fn folder_with_setup_py() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();

let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.8.2"));
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.7.7"));
assert_eq!(expected, actual);
Ok(())
}
Expand All @@ -134,7 +134,7 @@ fn folder_with_init_py() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();

let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.8.2"));
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.7.7"));
assert_eq!(expected, actual);
Ok(())
}
Expand All @@ -151,7 +151,7 @@ fn folder_with_py_file() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();

let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.8.2"));
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.7.7"));
assert_eq!(expected, actual);
dir.close()
}
Expand All @@ -168,7 +168,7 @@ fn with_virtual_env() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();

let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.8.2 (my_venv)"));
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.7.7 (my_venv)"));
assert_eq!(expected, actual);
dir.close()
}
Expand All @@ -185,7 +185,7 @@ fn with_active_venv() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();

let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.8.2 (my_venv)"));
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.7.7 (my_venv)"));
assert_eq!(expected, actual);
dir.close()
}
Expand Down Expand Up @@ -226,7 +226,7 @@ fn disabled_scan_for_pyfiles_and_folder_with_setup_py() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();

let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.8.2"));
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.7.7"));
assert_eq!(expected, actual);
Ok(())
}

0 comments on commit a670e01

Please sign in to comment.