Update test.yml #10
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: Test Automation | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust toolchain nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
components: rustfmt, clippy | |
- name: Set up cargo | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: nightly | |
- name: Set up python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Set up and Test | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest maturin | |
make install | |
pip install -r requirements.txt | |
make test |