Skip to content

Commit

Permalink
Update CI config
Browse files Browse the repository at this point in the history
Python 3.10 is the default for the project for some time now.
We no longer use Ubuntu 20.04 for development, thus we upgrade to the
latest LTS.
  • Loading branch information
martis42 committed Dec 23, 2023
1 parent 3dea4d7 commit fcd03f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 28 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [ pull_request ]

jobs:
pre-commit:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
Expand All @@ -14,15 +14,15 @@ jobs:
installer-parallel: true
- uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: "3.10"
cache: 'poetry'
- name: Install dependencies
run: poetry install --no-interaction --no-root
- run: source .venv/bin/activate
- uses: pre-commit/[email protected]

fast-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Unit tests
Expand All @@ -31,15 +31,15 @@ jobs:
run: bazel build --config=mypy -- //src/... //test/aspect:all

integration-tests-aspect:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [ pre-commit, fast-tests ]
steps:
- uses: actions/checkout@v4
- name: Integration tests - Aspect
run: ./test/aspect/execute_tests.py

integration-tests-apply-fixes:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [ pre-commit, fast-tests ]
steps:
- run: |
Expand All @@ -51,23 +51,3 @@ jobs:
run: |
export PATH=/tmp/bin:$PATH
./test/apply_fixes/execute_tests.py
# tests:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v4
# - uses: snok/install-poetry@v1
# with:
# virtualenvs-create: true
# virtualenvs-in-project: true
# installer-parallel: true
# - uses: actions/setup-python@v5
# with:
# python-version: 3.8
# cache: 'poetry'
# - name: Install dependencies
# run: poetry install --no-interaction --no-root
# - name: Display Python version
# run: python -c "import sys; print(sys.version)"
# - name: Coverage
# run: poetry run pytest --cov --pylint
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ Even if analysing the code works initially, it might break at any time if the or

| Platform | Constraints |
| ---------------- | ---------------------------------------------------------------------------------------------------------- |
| Operating system | No constraints by design. However, Ubuntu 20.04 is currently the only OS used for development and testing. |
| Python | Minimum version is 3.8. Multiple versions are tested. |
| Bazel | Minimum version is 5.4.0. Multiple versions are tested. |
| Operating system | No constraints by design. However, Ubuntu 22.04 is currently the only OS used for development and testing. |
| Python | Minimum version is 3.8. All newer major versions until 3.12 are tested. |
| Bazel | Minimum version is 5.4.0. Multiple newer versions are tested including rolling releases. |
| Buildozer | No known limitations. Tests have been performed with 5.0.1. |

# Alternatives to DWYU
Expand Down

0 comments on commit fcd03f2

Please sign in to comment.