Skip to content
Closed
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
52 changes: 32 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,53 +6,62 @@ on:

jobs:
compile:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container: ubuntu:20.04
steps:
- name: Set up Ubuntu 20.04 and Python 3.8
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git python3 python3-pip python3-venv python-is-python3
python --version
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Install dependencies
run: poetry install
- name: Release metadata check
run: poetry run python scripts/check_release_workflow.py
- name: Compile
run: poetry run mypy .
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container: ubuntu:20.04
steps:
- name: Set up Ubuntu 20.04 and Python 3.8
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git python3 python3-pip python3-venv python-is-python3
python --version
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Install dependencies
run: poetry install

- name: Test
run: poetry run pytest -rP .

compat-build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container: ubuntu:20.04
steps:
- name: Set up Ubuntu 20.04 and Python 3.8
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git python3 python3-pip python3-venv python-is-python3
python --version
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Install primary package
run: poetry install
- name: Build and verify compatibility package
Expand All @@ -74,17 +83,20 @@ jobs:
publish:
needs: [compile, test, compat-build]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container: ubuntu:20.04
steps:
- name: Set up Ubuntu 20.04 and Python 3.8
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git python3 python3-pip python3-venv python-is-python3
python --version
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Install dependencies
run: poetry install

Expand Down
Loading