# This workflow will install Python dependencies, run tests and lint. # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions name: Build on: pull_request: branches: - main jobs: build: runs-on: ubuntu-latest strategy: matrix: python-version: ['3.10'] steps: - name: Cancel previous uses: styfle/cancel-workflow-action@0.8.0 with: access_token: ${{ github.token }} - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | pip install . pip install .[test] - name: Run pytest run: | pytest vit_jax