Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Mar 1, 2024
1 parent 9e621b6 commit 043fe94
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8"] #, "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand All @@ -22,32 +22,33 @@ jobs:
- name: set python version
run: |
rye pin cpython@${{ matrix.python-version }}
cat .python-version
VERSION=$(cat .python-version)
echo "python_version=${VERSION}" >> $GITHUB_OUTPUT
- name: Load cached venv
id: cached-venv-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.cached-venv-dependencies.outputs.python_version }}-${{ hashFiles('**/pyproject.toml') }}

- name: Install dependencies
if: steps.cached-venv-dependencies.outputs.cache-hit != 'true'
run: |
rye sync --all-features
- name: Load cached pre-commit
id: cached-pre-commit-dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: venv-${{ runner.os }}-${{ steps.cached-venv-dependencies.outputs.python_version }}-${{ hashFiles('**/pyproject.toml') }}

- name: Code checks
run: |
rye run pre-commit run --all-files --show-diff-on-failure
- name: Test with pytest
run: |
rye run pytest
# - name: Load cached venv
# id: cached-venv-dependencies
# uses: actions/cache@v4
# with:
# path: .venv
# key: venv-${{ runner.os }}-${{ steps.cached-venv-dependencies.outputs.python_version }}-${{ hashFiles('**/pyproject.toml') }}

# - name: Install dependencies
# if: steps.cached-venv-dependencies.outputs.cache-hit != 'true'
# run: |
# rye sync --all-features

# - name: Load cached pre-commit
# id: cached-pre-commit-dependencies
# uses: actions/cache@v4
# with:
# path: ~/.cache/pre-commit
# key: venv-${{ runner.os }}-${{ steps.cached-venv-dependencies.outputs.python_version }}-${{ hashFiles('**/pyproject.toml') }}

# - name: Code checks
# run: |
# rye run pre-commit run --all-files --show-diff-on-failure

# - name: Test with pytest
# run: |
# rye run pytest

0 comments on commit 043fe94

Please sign in to comment.