Fix up lint more, and bump down to 3.10 as min req
This commit is contained in:
parent
9a2be5885b
commit
6121f75223
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
@ -16,10 +16,10 @@ jobs:
|
|||||||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.11
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.10"
|
||||||
cache: pip
|
cache: pip
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@ -33,19 +33,6 @@ jobs:
|
|||||||
PGPASSWORD: postgres
|
PGPASSWORD: postgres
|
||||||
run: |
|
run: |
|
||||||
python -m pytest
|
python -m pytest
|
||||||
|
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up Python 3.11
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: "3.11"
|
|
||||||
cache: pip
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install -r requirements-dev.txt
|
|
||||||
- name: Run pre-commit
|
- name: Run pre-commit
|
||||||
run: |
|
run: |
|
||||||
pre-commit run -a
|
pre-commit run -a --show-diff-on-failure
|
||||||
|
@ -4,7 +4,7 @@ version: 2
|
|||||||
build:
|
build:
|
||||||
os: ubuntu-22.04
|
os: ubuntu-22.04
|
||||||
tools:
|
tools:
|
||||||
python: "3.11"
|
python: "3.10"
|
||||||
|
|
||||||
# Build documentation in the docs/ directory with Sphinx
|
# Build documentation in the docs/ directory with Sphinx
|
||||||
sphinx:
|
sphinx:
|
||||||
|
@ -7,7 +7,7 @@ Development can be done "bare metal" or with Docker. We'll describe both here.
|
|||||||
|
|
||||||
### Bare Metal
|
### Bare Metal
|
||||||
|
|
||||||
Takahē requires Python 3.11, so you'll need that first. Then, create and
|
Takahē requires Python 3.10 or above, so you'll need that first. Then, create and
|
||||||
activate a virtual environment:
|
activate a virtual environment:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
Reference in New Issue
Block a user