We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3d4ce7 commit 9b60419Copy full SHA for 9b60419
1 file changed
.github/workflows/test.yml
@@ -0,0 +1,37 @@
1
+name: Run Tests
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
8
9
+jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v4
16
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v4
19
+ with:
20
+ python-version: '3.11'
21
22
+ - name: Install Poetry
23
+ run: |
24
+ curl -sSL https://install.python-poetry.org | python3 -
25
+ env:
26
+ POETRY_HOME: $HOME/.poetry
27
28
+ - name: Add Poetry to PATH
29
+ run: echo "$HOME/.poetry/bin" >> $GITHUB_PATH
30
31
+ - name: Install dependencies
32
33
+ poetry install
34
35
+ - name: Run tests
36
37
+ poetry run pytest
0 commit comments