Skip to content

Commit ee17e7b

Browse files
📦️ Add minimal CI setup (#29)
* update poetry lock * add CI
1 parent 638f04b commit ee17e7b

File tree

3 files changed

+59
-3
lines changed

3 files changed

+59
-3
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/push.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: build
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
ci:
11+
strategy:
12+
matrix:
13+
pyVersion: [ '3.9' ]
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Unshallow
20+
run: git fetch --prune --unshallow
21+
22+
- name: Install Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.pyVersion }}
26+
27+
28+
- name: Install Poetry
29+
uses: snok/install-poetry@v1
30+
with:
31+
virtualenvs-create: true
32+
virtualenvs-in-project: true
33+
installer-parallel: true
34+
35+
36+
- name: Load cache
37+
id: cached-poetry-dependencies
38+
uses: actions/cache@v3
39+
with:
40+
path: .venv
41+
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
42+
43+
44+
- name: Install project dependencies
45+
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
46+
run: poetry install --no-interaction --no-root --with=dev
47+
48+
49+
- name: Verify linting
50+
run: make verify

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)