-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 895 Bytes
/
ci.yml
File metadata and controls
37 lines (31 loc) · 895 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
36
37
name: CI
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]
jobs:
test:
name: Test
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Checkout razorcore
uses: actions/checkout@v4
with:
repository: RazorBackRoar/razorcore
path: .razorcore
token: ${{ secrets.RAZORCORE_TOKEN }}
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.13"
- name: Link razorcore to expected path
run: ln -sf "$(realpath .razorcore)" "$(realpath .)/../.razorcore"
- name: Install dependencies
run: uv sync
- name: Run tests
env:
PYTHONPATH: ${{ github.workspace }}/src
run: uv run --with pytest --with pytest-cov pytest --cov=four_charm --cov-report=term-missing --cov-report=xml