Skip to content

Commit

Permalink
chore: update test GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
mesejo committed Dec 28, 2024
1 parent e984d5a commit d7e861d
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,26 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install codecov
- name: Test with coverage
run: |
coverage run --source trrex -m py.test
- name: Publish coverage

- name: install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true

- name: install dependencies and project
run: |
codecov
uv sync --all-extras --all-groups
working-directory: ${{ github.workspace }}

- name: test with coverage
run: uv run coverage run --source trrex -m pytest

- name: publish coverage
run: codecov
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ classifiers = [
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
]
dependencies = [
"pip>=24.3.1",
]

[project.urls]
Homepage = "https://github.com/mesejo/trex"

[dependency-groups]
dev = [
"codecov>=2.1.13",
"coverage>=7.6.10",
"flashtext>=2.7",
"hypothesis>=6.123.1",
Expand Down
Loading

0 comments on commit d7e861d

Please sign in to comment.