ci: reuse Forgejo checkout and runner Python 3.11
This commit is contained in:
parent
4da3dd68c6
commit
30f31cc096
1 changed files with 11 additions and 6 deletions
|
|
@ -5,13 +5,18 @@ on:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
checks:
|
checks:
|
||||||
|
# Existing runner label maps to node:20-bookworm (Python 3.11.2 included).
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/checkout@v4
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
- uses: https://github.com/actions/setup-python@v5
|
- name: Prepare Python 3.11 environment
|
||||||
with:
|
run: |
|
||||||
python-version: "3.11"
|
python3 -c 'import sys; assert sys.version_info[:2] == (3, 11)'
|
||||||
|
apt-get update -qq
|
||||||
|
apt-get install -y --no-install-recommends python3-venv
|
||||||
|
python3 -m venv .venv
|
||||||
- name: Install development dependencies
|
- name: Install development dependencies
|
||||||
run: python -m pip install -e '.[dev]'
|
run: .venv/bin/python -m pip install -e '.[dev]'
|
||||||
- name: Lint, types and unit tests
|
- name: Lint, types and unit tests
|
||||||
run: make check
|
run: PATH="$PWD/.venv/bin:$PATH" make check
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue