ci improvements #40
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: Python Test | |
on: | |
pull_request: | |
paths: | |
- Cargo.lock | |
- py-kornia/** | |
- .github/workflows/test-python.yml | |
push: | |
branches: | |
- main | |
paths: | |
- Cargo.lock | |
- py-kornia/** | |
- .github/workflows/test-python.yml | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: sudo apt-get install -y cmake nasm | |
- name: Build and test | |
run: make test-python |