-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github workflow for automated testing on Ubuntu Linux. (#26)
* try workflow * revert workflopw
- Loading branch information
1 parent
18ea05b
commit 0ef31dd
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
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 --install-version 24.1.0 mojo | ||
# TODO: fix version pinning of mojo https://github.com/modularml/mojo/issues/1887 | ||
modular install 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_mojo/bin:$PATH" | ||
pytest |