Rust #890
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: Rust | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '0 14 * * *' | |
env: | |
CARGO_TERM_COLOR: always | |
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2.2.2 | |
with: | |
python-version: 3.8 | |
- name: Install Anki | |
run: | | |
python -m pip install --upgrade pip | |
pip install anki | |
- name: Build | |
run: cargo build | |
- name: Run tests | |
run: cargo test --lib |