Skip to content

Commit

Permalink
github: Run actions on python:3.10-bookworm
Browse files Browse the repository at this point in the history
This ensures a stable environment for tests even when ubuntu-latest
changes. Also, the dependency on setup-python action has been
removed. That action supports only Ubuntu and limited architectures.

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
  • Loading branch information
p12tic committed Mar 8, 2024
1 parent f81cbe3 commit a03594f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ on:
jobs:
lint-ruff:
runs-on: ubuntu-latest
container: docker.io/library/python:3.10-bookworm
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Analysing the code with ruff
run: |
pip install -r test-requirements.txt
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ on:
jobs:
test:
runs-on: ubuntu-latest

container: docker.io/library/python:3.10-bookworm
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y podman
Expand Down

0 comments on commit a03594f

Please sign in to comment.