-
Notifications
You must be signed in to change notification settings - Fork 7
Implemented Elo Function Algorithm and wrote unit test for it #15
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
69b539c
Implemented_Elo Function Algorithm and wrote unit test for it
Cyber-Mitch c2f3bc5
Update ci.yml
Cyber-Mitch 1cc8985
Update ci.yml
Cyber-Mitch 1e226e0
Implemented_Elo Function Algorithm and wrote unit test for it
Cyber-Mitch 7f61849
Implemented_Elo Function Algorithm and wrote unit test for it
Cyber-Mitch 70a5086
Merge branch 'feat/elo_function' of https://github.com/Cyber-Mitch/sn…
Cyber-Mitch 9ba974a
Resolved conflict
Cyber-Mitch 4760c1f
Resolved conflict
Cyber-Mitch d281167
ci updated locally since git pull didn't pull the
Cyber-Mitch 13d819b
accepted changes
Cyber-Mitch ae9383b
accepted changes
Cyber-Mitch 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 hidden or 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 |
|---|---|---|
| @@ -1,39 +1,25 @@ | ||
| name: Contracts CI | ||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| pull_request: | ||
| branches: ["main"] | ||
| name: Build and test Dojo contracts | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| sozo-test: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| DOJO_VERSION: v1.2.2 | ||
| steps: | ||
| - name: Install Rust | ||
| uses: actions-rs/toolchain@v1 | ||
| - uses: actions/checkout@v3 | ||
| - uses: software-mansion/setup-scarb@v1 | ||
| with: | ||
| toolchain: stable | ||
| override: true | ||
|
|
||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Install asdf | ||
| uses: asdf-vm/actions/setup@v2 | ||
|
|
||
| - name: Install plugins | ||
| run: | | ||
| asdf plugin add scarb | ||
| asdf install scarb 2.9.4 | ||
| asdf global scarb 2.9.4 | ||
| asdf plugin add dojo https://github.com/dojoengine/asdf-dojo | ||
| asdf install dojo 1.4.0 | ||
| asdf global dojo 1.4.0 | ||
| - name: Build contracts | ||
| run: | | ||
| sozo build | ||
| - name: Run tests | ||
| run: | | ||
| sozo test | ||
| - name: Check formatting | ||
| run: | | ||
| scarb fmt --check | ||
| scarb-version: "2.9.2" | ||
| - run: | | ||
| curl -L https://install.dojoengine.org | bash | ||
| /home/runner/.config/.dojo/bin/dojoup -v ${{ env.DOJO_VERSION }} | ||
| - run: | | ||
| /home/runner/.config/.dojo/bin/sozo build | ||
| /home/runner/.config/.dojo/bin/sozo test | ||
| if [[ `git status --porcelain` ]]; then | ||
| echo The git repo is dirty | ||
| echo "Make sure to run \"sozo build\" after changing Scarb.toml" | ||
| exit 1 | ||
| fi |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.