Skip to content

Commit f54c0f6

Browse files
authored
Create GithubActions.yml
1 parent 946d953 commit f54c0f6

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Tests
2+
jobs:
3+
test1:
4+
runs-on: ubuntu-latest
5+
container: ubuntu: 22.04
6+
strategy:
7+
matrix:
8+
python: [3.12.6]
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Install Docker
12+
run: |
13+
apt-get update
14+
apt-get install -y docker.io
15+
- name: Install lsb-release
16+
run: |
17+
apt-get update
18+
apt-get install -y lsb-release
19+
- name: fix pip issue
20+
run: mkdir -p /github/home/.cache/pip
21+
- name: Setup Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python }}
25+
cache: 'pip'
26+
cache-dependency-path: 'requirements.txt'
27+
test2:
28+
runs-on: ubuntu-latest
29+
strategy:
30+
matrix:
31+
python: [3.12.6]
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: Setup Python
35+
uses: actions/setup-python@v5
36+
with:
37+
python-version: ${{ matrix.python }}
38+
cache: 'pip'
39+
cache-dependency-path: 'requirements.txt

0 commit comments

Comments
 (0)