mirror of
https://github.com/tiennm99/serena.git
synced 2026-08-06 02:23:52 +00:00
Initial commit from pymetrius template
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
name: Tests on Ubuntu
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
cpu:
|
||||
runs-on: ubuntu-latest
|
||||
if: "!contains(github.event.head_commit.message, 'ci skip')"
|
||||
strategy:
|
||||
matrix:
|
||||
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 }}"
|
||||
|
||||
# Include the appropriate package manager steps based on the selection
|
||||
|
||||
- name: Setup and install dependencies with UV
|
||||
uses: ./.github/workflows/common_steps.yml
|
||||
with:
|
||||
steps: uv-setup
|
||||
- name: Test with pytest
|
||||
run: uv run poe test
|
||||
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV }}
|
||||
file: ./coverage.xml
|
||||
flags: unittests
|
||||
name: codecov-umbrella
|
||||
fail_ci_if_error: false
|
||||
Reference in New Issue
Block a user