mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-11-19 15:46:10 +00:00
Compare commits
10 Commits
7f45b32806
...
ci-update
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d023acbaf7 | ||
|
|
1cc087ca48 | ||
|
|
c68c212de8 | ||
|
|
c18ab93f2e | ||
|
|
b9f5051015 | ||
|
|
32471aff3b | ||
|
|
ad9d2a7137 | ||
|
|
ecbc1e0252 | ||
|
|
df292d65f0 | ||
|
|
e45b1dc267 |
2
.github/scripts/ci_checks.py
vendored
2
.github/scripts/ci_checks.py
vendored
@@ -53,8 +53,8 @@ def check_version() -> None:
|
|||||||
current_version = get_current_version()
|
current_version = get_current_version()
|
||||||
current_version_tuple = packaging.version.parse(current_version)
|
current_version_tuple = packaging.version.parse(current_version)
|
||||||
|
|
||||||
# if the current version is >= latest, exit 1
|
|
||||||
if latest_version_tuple >= current_version_tuple:
|
if latest_version_tuple >= current_version_tuple:
|
||||||
|
print(f"Current version {current_version_tuple} is less than or equal to latest version {latest_version_tuple} on crates.io.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
print(f"Current version: {current_version_tuple}")
|
print(f"Current version: {current_version_tuple}")
|
||||||
|
|||||||
13
.github/workflows/ci-checks.yml
vendored
13
.github/workflows/ci-checks.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: docs-and-testcov
|
name: ci-checks
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@@ -22,19 +22,20 @@ permissions:
|
|||||||
pages: write
|
pages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs-and-testcov:
|
ci-checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Python
|
- name: Install Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v5
|
uses: astral-sh/setup-uv@v6
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
uv pip install requests
|
uv venv
|
||||||
|
uv pip install requests packaging
|
||||||
- name: Run CI checks
|
- name: Run CI checks
|
||||||
run: |
|
run: |
|
||||||
python .github/scripts/ci_checks.py
|
uv run .github/scripts/ci_checks.py
|
||||||
|
|||||||
4
.github/workflows/run-benchmarks.yml
vendored
4
.github/workflows/run-benchmarks.yml
vendored
@@ -37,9 +37,9 @@ jobs:
|
|||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
||||||
- name: Install Python
|
- name: Install Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v5
|
uses: astral-sh/setup-uv@v6
|
||||||
- name: Setup venv
|
- name: Setup venv
|
||||||
run: |
|
run: |
|
||||||
uv venv
|
uv venv
|
||||||
|
|||||||
Reference in New Issue
Block a user