mirror of
https://github.com/tiennm99/serena.git
synced 2026-08-16 14:23:22 +00:00
Initial commit from pymetrius template
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
name: Tests on Windows and MacOS
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
cpu-extra:
|
||||
runs-on: ${{ matrix.os }}
|
||||
if: "!contains(github.event.head_commit.message, 'ci skip')"
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, windows-latest]
|
||||
python-version: [3.11]
|
||||
steps:
|
||||
- name: Cancel previous run
|
||||
uses: styfle/cancel-workflow-action@0.11.0
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
|
||||
# use uv package manager
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
- uses: actions/cache@v3
|
||||
name: Cache dependencies
|
||||
with:
|
||||
path: ~/.cache/uv
|
||||
key: uv-${{ hashFiles('pyproject.toml') }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
uv venv
|
||||
uv pip install -e ".[dev]"
|
||||
- name: Test with pytest
|
||||
run: uv run poe test-subset
|
||||
|
||||
Reference in New Issue
Block a user