From 9e855ec1fc0776da6e205797fa2bc0f46041e3e5 Mon Sep 17 00:00:00 2001 From: Isotr0py <2037008807@qq.com> Date: Mon, 15 Apr 2024 12:06:22 +0800 Subject: [PATCH] :wrench: (CI): Fix Test CI --- .github/workflows/test.yml | 10 +++++----- requirements-dev.txt | 2 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 605bfab..49e92a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,10 +30,7 @@ jobs: env: BIN: ${{ matrix.os == 'macos-latest' && 'Scripts' || 'bin' }} run: | - python -m venv .venv - - - name: Install python dependencies - run: pip install -r requirements-dev.txt + python -m venv venv - name: Set up Rust run: rustup show @@ -49,7 +46,10 @@ jobs: maturin develop --features dynamic - name: Test with pytest - run: pytest test/ --junitxml=junit/test-results-${{ matrix.python-version }}.xml + run: | + source venv/bin/activate + pip install -r requirements-dev.txt + pytest test/ --junitxml=junit/test-results-${{ matrix.python-version }}.xml - name: Upload pytest test results uses: actions/upload-artifact@v3 diff --git a/requirements-dev.txt b/requirements-dev.txt index 02e7362..e079f8a 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1 @@ -Pillow -maturin pytest