Skip to content

Commit

Permalink
Support Python 3.12 (#30)
Browse files Browse the repository at this point in the history
* Support Python 3.12

* Update ci.yml for Python 3.12

* Update ci.yml for cache
  • Loading branch information
kimdwkimdw authored Aug 6, 2024
1 parent 6bf6d5b commit 75686a6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,33 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.10", "3.9", "3.8"]
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v3
with:
path: |
${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip
- name: Install dependencies
env:
UV_SYSTEM_PYTHON: true
run: |
python -m pip install --upgrade pip
pip install black mypy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f tests/requirements.txt ]; then pip install -r tests/requirements.txt; fi
pip install -e .
python -m pip install --upgrade pip uv
uv pip install black mypy
uv pip install -e .
if [ -f tests/requirements.txt ]; then uv pip install -r tests/requirements.txt; fi
- name: Lint with black and mypy
run: |
black --check .
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyyaml==6.0
pyyaml==6.0.1

pytest
pytest-cov
Expand Down

0 comments on commit 75686a6

Please sign in to comment.