Skip to content

Commit 5370728

Browse files
authored
Merge pull request #1 from keewis/ci
configure CI
2 parents 38a7a5c + f8d17ba commit 5370728

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
# Check for updates once a week
7+
interval: "weekly"

.github/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- dependabot
5+
- pre-commit-ci

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
ci:
10+
name: tests
11+
runs-on: [ubuntu-latest]
12+
strategy:
13+
matrix:
14+
python-version: ["3.10", "3.11", "3.12", "3.13"]
15+
16+
steps:
17+
- name: clone the repository
18+
uses: actions/checkout@v4
19+
- name: setup python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: "${{ matrix.python-version }}"
23+
- name: upgrade pip
24+
run: |
25+
python -m pip install --upgrade pip
26+
- name: install dependencies
27+
run: |
28+
python -m pip install -r requirements.txt
29+
python -m pip install pytest
30+
- name: run tests
31+
run: |
32+
python -m pytest -rf
33+
34+
e2e:
35+
name: end-to-end
36+
runs-on: [ubuntu-latest]
37+
38+
strategy:
39+
matrix:
40+
env-paths:
41+
- ["envs/env1.yaml"]
42+
- ["envs/env2.yaml"]
43+
- ["envs/env1.yaml", "envs/env2.yaml"]
44+
45+
steps:
46+
- name: clone the repository
47+
uses: actions/checkout@v3
48+
- name: run action
49+
uses: ./
50+
with:
51+
environment-paths: ${{ matrix.env-paths }}

0 commit comments

Comments
 (0)