Skip to content

Commit

Permalink
nightly update
Browse files Browse the repository at this point in the history
  • Loading branch information
thatstoasty committed Apr 24, 2024
1 parent f6a0a73 commit e6f9a04
Show file tree
Hide file tree
Showing 21 changed files with 1,952 additions and 339 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run Tests

on: ["push"]

jobs:
test:
runs-on: ubuntu-latest
environment: basic
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: |
curl https://get.modular.com | MODULAR_AUTH=${{ secrets.MODULAR_AUTH }} sh -
modular auth ${{ secrets.MODULAR_AUTH }}
modular install nightly/mojo
pip install pytest
pip install git+https://github.com/guidorice/mojo-pytest.git
- name: Unit Tests
run: |
export MODULAR_HOME="/home/runner/.modular"
export PATH="/home/runner/.modular/pkg/packages.modular.com_nightly_mojo/bin:$PATH"
# pytest
bash run_examples.sh
2 changes: 1 addition & 1 deletion external/gojo/fmt/__init__.mojo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .fmt import sprintf, printf, sprintf_str
from .fmt import sprintf, printf
1 change: 1 addition & 0 deletions external/gojo/fmt/fmt.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ fn sprintf(formatting: String, *args: Args) raises -> String:
return text


# TODO: temporary until we have arg packing.
fn sprintf_str(formatting: String, args: List[String]) raises -> String:
var text = formatting
var formatter_count = formatting.count("%")
Expand Down
2 changes: 1 addition & 1 deletion external/hue/__init__.mojo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .color import RGB
from .color import Color
Loading

0 comments on commit e6f9a04

Please sign in to comment.