Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 2e9fb55

Browse files
committed
Add github actions
1 parent 86b105a commit 2e9fb55

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/build.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build and test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: set up python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: |
18+
3.9
19+
3.10
20+
3.11
21+
- name: install poetry
22+
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
23+
- name: add poetry to path
24+
run: echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
25+
- name: install dependencies and build
26+
run: poetry install
27+
- name: run tests
28+
run: poetry run tox

0 commit comments

Comments
 (0)