Skip to content

Commit

Permalink
feat: revise ci
Browse files Browse the repository at this point in the history
  • Loading branch information
justmars committed Aug 5, 2024
1 parent 1e38b85 commit 082b4f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Dependencies
Expand All @@ -27,23 +27,13 @@ jobs:
matrix:
python-version: ['3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup Poetry
uses: Gr1N/setup-poetry@v8
with:
poetry-version: 1.4.2
env:
POETRY_VIRTUALENVS_CREATE: false
- name: Cache Poetry
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
cache: pip
- name: Install Python Dependencies
run: poetry install
run: python -m pip install --editable '.[dev]'
- name: Test with Pytest
run: poetry run pytest
run: pytest
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ dependencies = [
dev = [
"rich >= 13.3",
"pytest >= 8.3",
"pytest-cov >= 4.1"
"pytest-cov >= 4.1",
"build >= 1.0.3",
"twine >= 4.0.2",
]

[tool.setuptools.packages.find]
Expand Down

0 comments on commit 082b4f5

Please sign in to comment.