fix ci #6
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
rye-build: | |
runs-on: ubuntu-latest | |
steps: | |
# 1. Checkout the repository | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# 2. Install Rye using the pre-built action | |
- name: Install Rye | |
uses: sbarrios93/rye-rust-action@v1 | |
id: rye-installer | |
# 3. Show the installed Rye version | |
- name: Show Rye version | |
run: | | |
echo "Installed Rye commit hash: ${{ steps.rye-installer.outputs.rye_commit_hash }}" | |
rye --version | |
# 4. Sync dependencies with Rye | |
- name: Sync dependencies | |
run: | | |
rye sync | |
# 5. Run tests (add this if you want to run tests after syncing) | |
- name: Run tests | |
run: | | |
rye run pytest |