-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Add initial version #2
Merged
Merged
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6a544af
CI: Add initial version
Shaikh-Ubaid 16e6f8f
GitHub add ssh keys
Shaikh-Ubaid ccf31dc
Git: Instead use http to clone
Shaikh-Ubaid 266f02e
Use fixed LPython repository commit
Shaikh-Ubaid bc8eaca
Use latest lpython v0.20.0
Shaikh-Ubaid 9aa84c8
CI: Use fixed version for dependencies
Shaikh-Ubaid 2c0a49b
Fetch tags before checkout
Shaikh-Ubaid 1f43102
Use ssh
Shaikh-Ubaid 4f783fd
tmp
Shaikh-Ubaid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,66 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
MACOSX_DEPLOYMENT_TARGET: 12.0 | ||
|
||
jobs: | ||
Build: | ||
name: Conda-Forge LPython Test ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["windows-2019", "macos-latest", "ubuntu-latest"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: environment.yml | ||
|
||
- uses: hendrikmuhs/ccache-action@main | ||
with: | ||
variant: sccache | ||
key: ${{ github.job }}-${{ matrix.os }} | ||
|
||
- name: Clone LPython Source Repository | ||
shell: bash -e -l {0} | ||
run: | | ||
git clone https://github.com/lcompilers/lpython.git | ||
git checkout 2293972e5ce377787d134541f8363ae441030b76 | ||
|
||
- name: Run LPython Ctest | ||
shell: bash -e -l {0} | ||
run: | | ||
cd lpython | ||
ctest | ||
|
||
- name: Run LPython Integration Tests | ||
shell: bash -e -l {0} | ||
run: | | ||
cd lpython/integration_tests | ||
./run_tests.py -b llvm c wasm | ||
|
||
- name: Run LPython Fast Integration Tests | ||
shell: bash -e -l {0} | ||
run: | | ||
cd lpython/integration_tests | ||
./run_tests.py -b llvm c wasm -f | ||
|
||
- name: Run LPython Reference Tests | ||
shell: bash -e -l {0} | ||
run: | | ||
cd lpython | ||
./run_tests.py |
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,9 @@ | ||
name: lf | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.10 | ||
- lpython=0.19.0 | ||
- nodejs | ||
- make | ||
- cmake | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Put exact versions for all dependencies. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, got it. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For easiness of maintenance, perhaps here we can just checkout the corresponding "tag" from
environment.yml
, so:The git hash is more robust, but here I think we will be updating this version very often, so I think it's fine to use the tag. We assume that we do not change tags once published (we've never done that so far), so it should be robust.
In other cases when we use a branch, that is fragile, since branches move.