-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (40 loc) · 1.04 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Tests
on:
workflow_dispatch: # Enables manual trigger
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: List files in root
run: ls -la
- name: Print working directory
run: pwd
- name: Check readme permissions
run: ls -l readme.md
- name: Install dependencies
run: |
poetry install --with dev --verbose
- name: Run Unit Tests
env:
PYTHONPATH: ${{ github.workspace }}/src
AWS_USERNAME: ${{ secrets.AWS_USERNAME }}
AWS_PASSWORD: ${{ secrets.AWS_PASSWORD }}
run: |
pwd # Print working directory before running tests
poetry run test