-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.33 KB
/
test.yml
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
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
container:
image: python:3.10
steps:
- uses: actions/checkout@v4
- name: Install dependencies.
run : |
python -m pip install typeguard -r requirements/requirements.python.test.txt
- name: Run tests.
run : |
python -m pytest tests
install-as-package-and-test:
runs-on: [ubuntu-latest]
container:
image: python:${{ matrix.version }}
strategy:
matrix:
version: [3.10, 3.12]
steps:
- uses: actions/checkout@v4
with:
path: package-sources
- name: Install as package.
run : |
# If this repository becomes public, be sure to use the following instead:
# pip install git+https://github.com/uliegecsm/apt-helpers.git@${{ github.sha }}
pip install $PWD/package-sources
rm -rf package-sources
- name: Test as CLI directly.
run : |
apt-helpers install-packages --update --clean --upgrade --packages jq