-
Notifications
You must be signed in to change notification settings - Fork 36
executable file
·35 lines (34 loc) · 958 Bytes
/
tests.yaml
File metadata and controls
executable file
·35 lines (34 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Tests
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12"]
env:
PY_COLORS: "1"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Set up authentication for private repo
run: |
git config --global url."https://${{ secrets.POLYMATHIC_REPO_ACCESS }}@github.com/".insteadOf "https://github.com/"
- name: Install package
run: |
python -m pip install --upgrade pip
pip install --extra-index-url https://download.pytorch.org/whl/cpu ".[test]"
- name: Run linter
run: |
ruff check walrus tests
ruff check --select I walrus tests
- name: Run tests
run: python -m pytest tests