Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 37 additions & 53 deletions .github/workflows/ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,9 @@ name: Build-Test-Lint-etc (linux)
on: [push]

jobs:
setup:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
name: Setup
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- run: |
./ci/linux/create_venv.sh
./ci/linux/install_dependencies.sh
- name: 'Tar venv'
run: tar -cvf venv.tar ./.venv/
- name: Save venv
uses: actions/upload-artifact@v4
with:
path: ./venv.tar
name: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{github.run_id}}

lint:
name: Lint
runs-on: ubuntu-latest
needs: [ setup ]
strategy:
fail-fast: false
matrix:
Expand All @@ -43,20 +17,23 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Restore venv
uses: actions/download-artifact@v4
- name: Cache pip packages
uses: actions/cache@v3
with:
name: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{github.run_id}}
- name: Untar venv
run: tar -xvf venv.tar
- name: run unit tests
path: ~/.cache/pip
key: pip-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
pip-${{ matrix.python-version }}-
- run: |
./ci/linux/create_venv.sh
./ci/linux/install_dependencies.sh
- name: lint
run: |
./ci/linux/lint.sh

test:
name: Test
runs-on: ubuntu-latest
needs: [ setup ]
strategy:
fail-fast: false
matrix:
Expand All @@ -68,12 +45,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Restore venv
uses: actions/download-artifact@v4
- name: Cache pip packages
uses: actions/cache@v3
with:
name: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{github.run_id}}
- name: Untar venv
run: tar -xvf venv.tar
path: ~/.cache/pip
key: pip-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
pip-${{ matrix.python-version }}-
- run: |
./ci/linux/create_venv.sh
./ci/linux/install_dependencies.sh
- name: run unit tests
run: |
./ci/linux/test_unit.sh
Expand Down Expand Up @@ -104,7 +85,6 @@ jobs:
typecheck:
name: Typecheck
runs-on: ubuntu-latest
needs: [ setup ]
strategy:
fail-fast: false
matrix:
Expand All @@ -116,22 +96,22 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Restore venv
uses: actions/download-artifact@v4
- name: Cache pip packages
uses: actions/cache@v3
with:
name: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{github.run_id}}
- name: Untar venv
run: tar -xvf venv.tar
- name: Add mypy annotator
uses: pr-annotators/mypy-pr-annotator@v1.0.0

path: ~/.cache/pip
key: pip-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
pip-${{ matrix.python-version }}-
- run: |
./ci/linux/create_venv.sh
./ci/linux/install_dependencies.sh
- name: run typechecker
run: |
./ci/linux/typecheck.sh

build:
name: Build
needs: [ setup ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -144,12 +124,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Restore venv
uses: actions/download-artifact@v4
- name: Cache pip packages
uses: actions/cache@v3
with:
name: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{github.run_id}}
- name: Untar venv
run: tar -xvf venv.tar
path: ~/.cache/pip
key: pip-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
pip-${{ matrix.python-version }}-
- run: |
./ci/linux/create_venv.sh
./ci/linux/install_dependencies.sh
- name: build
run: |
./ci/linux/build_python_package.sh
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
dependencies = [
"aio-pika ~= 9.4, < 9.5",
"omotes-sdk-protocol ~= 1.2",
"pyesdl ~= 25.5.1",
"pyesdl ~= 25.7",
"pamqp ~= 3.3",
"celery ~= 5.3",
"typing-extensions ~= 4.11",
Expand Down