Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
balins committed Feb 21, 2025
1 parent 45ec757 commit 592064d
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,42 +11,40 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python: [3.7, 3.8, 3.9]
python: [3.12, 3.13, 3.14]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2.2.1
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}
restore-keys: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}-
- name: Install dependencies
run: |
pip install -r requirements.txt -r requirements-dev.txt
run: pip install -r requirements.txt -r requirements-dev.txt

- name: Build package
run: |
pip install -e .
run: pip install -e .

- name: Run tests
run: |
pytest fuzzytree
run: pytest fuzzytree

- name: Build docs
if: |
matrix.os == 'ubuntu-latest' &&
matrix.python == 3.9
if: matrix.os == 'ubuntu-latest' && matrix.python == 3.14
run: |
make -C doc/ html
touch doc/_build/html/.nojekyll
- name: Deploy docs
uses: JamesIves/[email protected]
if: |
matrix.os == 'ubuntu-latest' &&
matrix.python == 3.9
uses: JamesIves/github-pages-deploy-action@v4
if: matrix.os == 'ubuntu-latest' && matrix.python == 3.14
with:
branch: gh-pages
folder: doc/_build/html
folder: doc/_build/html

0 comments on commit 592064d

Please sign in to comment.