Skip to content

Commit

Permalink
ngr: Fix tests for Python, Java/Gradle, Ruby, and Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 30, 2023
1 parent b7a2530 commit 14d603a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ jobs:
cache: 'pip'
cache-dependency-path: 'pyproject.toml'

# Needed for `pueblo.ngr`.
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"

# Needed for `pueblo.ngr`.
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true

- name: Set up project
run: |
Expand Down
2 changes: 1 addition & 1 deletion tests/ngr/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "rust"
version = "0.0.1"
edition = "2023"
edition = "2015"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion tests/test_ngr.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_ngr_sample(sample: Path):

result = runner.invoke(
pueblo.ngr.cli,
args=f"test tests/{sample}",
args=f"test --accept-no-venv tests/{sample}",
catch_exceptions=False,
prog_name=PROGRAM_NAME,
)
Expand Down

0 comments on commit 14d603a

Please sign in to comment.