Skip to content

Commit

Permalink
Revert "update CI"
Browse files Browse the repository at this point in the history
UV doesn't support python 3.7

This reverts commit 11b3d56.
  • Loading branch information
shyamd committed Mar 9, 2024
1 parent 11b3d56 commit 0fef603
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 57 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
57 changes: 16 additions & 41 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 0fef603

Please sign in to comment.