meta: Depend on cairo-rs-py
for devnet-sequencer
#145
Workflow file for this run
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
name: Unit Tests | |
on: [push] | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Install Poetry | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: "1.3" | |
- name: Install Poetry dependencies | |
run: bin/install | |
- name: Format and Lint | |
run: | | |
poetry run black --check . # Black for Python | |
poetry run cairo-format -c $(find . -type f -name "*.cairo") | |
- name: Compile | |
run: poetry run nile compile | |
- name: Test | |
run: poetry run pytest |