Skip to content

Commit

Permalink
move python 2.7 tests onto a container
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Sep 25, 2023
1 parent 42f03f3 commit ef339fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,35 @@ env:
jobs:
build:
runs-on: ubuntu-20.04
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
python:
- "2.7"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
include:
- python: "2.7"
container: "python:2.7"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
if: matrix.container == null
- name: Install sudo
run: apt-get update && apt-get install -y sudo debian-archive-keyring
if: matrix.container != null
- name: Install git and git-annex from backports
run: |
echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list
apt-get update && apt-get install -y git/buster-backports git-annex/buster-backports
if: matrix.container != null
- name: Install dependencies
run: pip install -r requirements-test.txt
- name: Install RPM tools
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ python =
3.9: py39
3.10: py310
3.11: py311
problem_matcher = False

[testenv:ansible-lint]
changedir = {toxinidir}/obal/data
Expand Down

0 comments on commit ef339fc

Please sign in to comment.