FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
problemtools/.github/workflows/python-app.yml at master · Kattis/problemtools · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
Kattis
/
problemtools
Public
Notifications
You must be signed in to change notification settings
Fork
82
Star
126
Code
Issues
53
Pull requests
2
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
problemtools
/
.github
/
workflows
/
python-app.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
66 lines (61 loc) · 2.18 KB
Breadcrumbs
problemtools
/
.github
/
workflows
/
python-app.yml
Copy path
File metadata and controls
66 lines (61 loc) · 2.18 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
This workflow will install Python dependencies, run tests and lint
#
For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name
:
Python tests
on
:
push
:
branches
:
[ "master", "develop" ]
pull_request
:
branches
:
[ "master", "develop" ]
permissions
:
contents
:
read
jobs
:
pythontests
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
python-version
:
["3.11", "3.12", "3.13", "3.14"]
#
3.11 is the lowest we support, since we want StrEnum
container
:
image
:
problemtools/githubci:latest
steps
:
-
uses
:
actions/checkout@v6
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v6
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install dependencies
run
:
|
python -m venv venv
venv/bin/python --version
venv/bin/pip install -r requirements-dev.txt
if [ -f requirements.txt ]; then venv/bin/pip install -r requirements.txt; fi
-
name
:
Check ruff version matches .pre-commit-config.yaml
run
:
venv/bin/python admin/check_ruff_version.py
-
name
:
Lint with ruff
run
:
venv/bin/ruff check --output-format=github
-
name
:
Check ruff formatting
run
:
venv/bin/ruff format --check --diff
-
name
:
Test with pytest
run
:
venv/bin/pytest
-
name
:
Run mypy
run
:
|
venv/bin/mypy --non-interactive --config-file mypy.ini -p problemtools
packages
:
#
Use a separate job to test debian packaging to speed things up (no need to test this for every python version above)
runs-on
:
ubuntu-latest
container
:
image
:
problemtools/githubci:latest
steps
:
-
uses
:
actions/checkout@v6
with
:
submodules
:
true
-
name
:
Set safe directory (work around checkout not doing that properly for containers)
run
:
git config --global --add safe.directory "$GITHUB_WORKSPACE"
-
name
:
Build debian packages
run
:
|
make builddeb
-
name
:
Install debian package
run
:
dpkg -i ../kattis-problemtools_*.deb
-
name
:
Verify examples
run
:
|
shopt -s extglob
verifyproblem examples/!(README.md)
shell
:
bash
Back
|
FazBrowse Home
|
New Git URL