Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Mar 9, 2024
1 parent 3a3c520 commit 11b3d56
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 18 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,24 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4.3.0
with:
python-version: 3.7
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
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
57 changes: 41 additions & 16 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Set up Python 3.7
uses: actions/setup-python@v1
- name: Set up Python 3.11
uses: actions/setup-python@v4.3.0
with:
python-version: 3.7
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
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-testing.txt
uv pip install -r requirements.txt
uv pip install -r requirements-testing.txt
- name: Lint with Ruff
run: ruff src
Expand All @@ -43,28 +55,41 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4.3.0
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: |
pip install -e .
uv pip install -e .
pytest --cov=mkdocs_bibtex --cov-report=xml
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v3.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml

0 comments on commit 11b3d56

Please sign in to comment.