Skip to content

Commit 55b2149

Browse files
committed
Use problemtools/githubci image in workflow. Run verifyproblem on all examples.
1 parent 6f70615 commit 55b2149

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/python-app.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
strategy:
1919
matrix:
2020
python-version: ["pypy3.11", "3.11"] # 3.11 is the lowest we support, since we want StrEnum
21+
container:
22+
image: problemtools/githubci:latest
2123
steps:
2224
- uses: actions/checkout@v4
2325
- name: Set up Python ${{ matrix.python-version }}
@@ -29,8 +31,6 @@ jobs:
2931
python -m pip install --upgrade pip
3032
pip install mypy ruff pytest
3133
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32-
sudo apt-get update
33-
sudo apt-get install pandoc tidy ghostscript python3 texlive-fonts-recommended texlive-lang-cyrillic texlive-latex-extra texlive-plain-generic
3434
- name: Lint with ruff
3535
run: ruff check --output-format=github
3636
- name: Check ruff formatting
@@ -43,12 +43,16 @@ jobs:
4343
4444
packages: # Use a separate job to test debian packaging to speed things up (no need to test this for every python version above)
4545
runs-on: ubuntu-latest
46+
container:
47+
image: problemtools/githubci:latest
4648
steps:
4749
- uses: actions/checkout@v4
48-
- name: Install apt packages (for debbuild)
49-
run: |
50-
sudo apt-get update
51-
sudo apt-get install debhelper dh-virtualenv dpkg-dev python3-venv automake g++ make libboost-regex-dev libgmp-dev python3 git build-essential
52-
shell: bash
5350
- name: Build debian packages
5451
run: make builddeb
52+
- name: Install debian package
53+
run: gdebi -i ../kattis-problemtools_*.deb
54+
- name: Verify examples
55+
run: |
56+
shopt -s extglob
57+
verifyproblem examples/!(README.md)
58+
- shell: bash

0 commit comments

Comments
 (0)