-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New build style: uv, justfile, ruff, drop unused (#1)
* Use uv for dependencies and clean up tooling we are not using now * Add Justfile * Update package description with more accurate classifiers as well as other pyproject.toml changes * Add link to upstream readme
- Loading branch information
Showing
13 changed files
with
1,372 additions
and
2,353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ name: Tests | |
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
paths-ignore: | ||
- 'docs/**' | ||
|
@@ -29,30 +28,21 @@ jobs: | |
with: | ||
tool: just | ||
- uses: "actions/checkout@v3" | ||
- uses: "actions/setup-python@v4" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: Set up Poetry cache for Python dependencies | ||
uses: actions/cache@v3 | ||
if: startsWith(runner.os, 'Linux') | ||
with: | ||
path: ~/.cache/pypoetry | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} | ||
restore-keys: ${{ runner.os }}-poetry-async-simple-sf | ||
- name: "Install poetry" | ||
run: "pip install poetry" | ||
- name: "Configure poetry" | ||
run: "poetry config virtualenvs.create false --local" | ||
- name: "Run poetry install deps" | ||
run: "just bootstrap" | ||
- name: Set up uv | ||
run: curl -LsSf https://astral.sh/uv/install.sh | sh | ||
# Set up environment and run code quality checks | ||
- name: "Run install deps" | ||
run: "just bootstrap ${{ matrix.python-version }}" | ||
- name: "Run code quality checks" | ||
run: "just check" | ||
- name: "Run code quality checks" | ||
# Enable when passing | ||
# - name: "Run code quality checks" | ||
# run: "just check-types" | ||
- name: "Run tests" | ||
run: "just ci-test ${COVERAGE_DIR}" | ||
|
||
# Publish code coverage results | ||
- name: Code Coverage Report | ||
if: ${{ matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest' }} | ||
if: ${{ matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' }} | ||
uses: irongut/[email protected] | ||
with: | ||
filename: coverage.xml | ||
|
@@ -66,15 +56,15 @@ jobs: | |
thresholds: '70 80' | ||
|
||
- name: Add Coverage PR Comment | ||
if: ${{ matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest' }} | ||
if: ${{ matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' }} | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
recreate: true | ||
path: code-coverage-results.md | ||
|
||
# Publish junit test result | ||
- name: Publish Test Report | ||
if: ${{ matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest' }} | ||
if: ${{ matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' }} | ||
uses: mikepenz/action-junit-report@v4 | ||
with: | ||
report_paths: ${{ format('/tmp/coverage/{0}/*junit.xml', github.run_id) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.