Skip to content

Commit

Permalink
Relax Python version requirements (#26)
Browse files Browse the repository at this point in the history
* Relax python requirements

* Update dependencies

* add more python version to CI

* Remove Py3.9 support

* Remove PDM caching

May be causing issues with CI workflow re-using same cache for different python versions
Likely doesn't result in much speedup

* Change PDM to be installed by pip

* Add libopenblas

* Sudo add libopenblas

* Update lock file

* Only Python3.10

* updating CI for 3.11, and adding pyright

---------

Co-authored-by: Daniel CH Tan <dtch1997@users.noreply.github.com>
Co-authored-by: David Chanin <chanindav@gmail.com>
  • Loading branch information
3 people authored Dec 1, 2023
1 parent 62ad2ed commit bd01efb
Show file tree
Hide file tree
Showing 3 changed files with 586 additions and 28 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,36 @@ env:
jobs:
test:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

strategy:
matrix:
python-version: ["3.10", "3.11"]

steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
- uses: actions/checkout@v3

- name: Setup PDM
uses: pdm-project/setup-pdm@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: true
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Install PDM
run: python -m pip install pdm

- name: Install dependencies
run: pdm install

- name: Lint
run: pdm run pre-commit run --all-files

- name: Type check
run: pdm run pyright

- name: Test
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
Expand Down
Loading

0 comments on commit bd01efb

Please sign in to comment.