From 0fef60348099301cb1c7a6fff14943028748f946 Mon Sep 17 00:00:00 2001 From: Shyam Dwaraknath <16827130+shyamd@users.noreply.github.com> Date: Sat, 9 Mar 2024 17:11:44 +0000 Subject: [PATCH] Revert "update CI" UV doesn't support python 3.7 This reverts commit 11b3d56a620c44df5ad62148eb90d4399eadffd0. --- .github/workflows/release.yml | 18 ++--------- .github/workflows/testing.yml | 57 ++++++++++------------------------- 2 files changed, 18 insertions(+), 57 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7258b45..dc92d65 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,24 +11,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.11 - uses: actions/setup-python@v4.3.0 + - uses: actions/setup-python@v3 with: - python-version: "3.11" - cache: "pip" - cache-dependency-path: "requirements*.txt" + python-version: 3.7 - - name: Install uv - run: | - pip install --upgrade pip - pip install uv - - - name: Activate virtualenv - run: | - uv venv - . .venv/bin/activate - echo PATH=$PATH >> $GITHUB_ENV - - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 0296030..449af58 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -14,30 +14,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v1 - - name: Set up Python 3.11 - uses: actions/setup-python@v4.3.0 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 with: - python-version: "3.11" - cache: "pip" - cache-dependency-path: "requirements*.txt" - - - name: Install uv - run: | - pip install --upgrade pip - pip install uv - - - name: Activate virtualenv - run: | - uv venv - . .venv/bin/activate - echo PATH=$PATH >> $GITHUB_ENV + python-version: 3.7 - name: Install dependencies run: | - uv pip install -r requirements.txt - uv pip install -r requirements-testing.txt + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r requirements-testing.txt - name: Lint with Ruff run: ruff src @@ -55,41 +43,28 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v1 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4.3.0 + uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} - cache: "pip" - cache-dependency-path: "requirements*.txt" - - - name: Install uv - run: | - pip install --upgrade pip - pip install uv - - - name: Activate virtualenv - run: | - uv venv - . .venv/bin/activate - echo PATH=$PATH >> $GITHUB_ENV - - - name: Install dependencies - run: | - uv pip install -r requirements.txt - uv pip install -r requirements-testing.txt - uses: r-lib/actions/setup-pandoc@v2 with: pandoc-version: ${{ matrix.pandoc-version }} + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install pytest pytest-cov + - name: Test with pytest run: | - uv pip install -e . + pip install -e . pytest --cov=mkdocs_bibtex --cov-report=xml - - uses: codecov/codecov-action@v3.1.1 + - uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml