Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Apr 30, 2024
1 parent bab906d commit f2cf756
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 495 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
name: Build with Poetry and Publish to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
uses: actions/setup-python@v5
- name: Install and configure Poetry
run: |
pip install poetry
Expand Down
47 changes: 20 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Get full python version
id: full-python-version
run: |
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info[:3]))")
- name: Set up cache
uses: actions/cache@v2
with:
path: .venv
key: ${{ runner.os }}-venv-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install and set up Poetry
run: |
pip install poetry
poetry config virtualenvs.in-project true
- name: Install dependencies
run: poetry install
- name: Lint
run: |
poetry run pylama base45
- name: Test
run: |
poetry run pytest -v --black --isort
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install and set up Poetry
run: |
pip install poetry
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Install python dependencies
run: poetry install
- name: Test with pytest
run: poetry run pytest --verbose
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog

## [0.5.0]

- Require Python 3.8 or later

## [0.4.4]

- [RFC 9285](https://www.rfc-editor.org/info/rfc9285) published
Expand Down
Loading

0 comments on commit f2cf756

Please sign in to comment.