-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 1.12 KB
/
tests.yml
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
# .github/workflows/tests.yml
name: Tests
on: push
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10' ]
name: Python ${{ matrix.python-version }}
steps:
- run: |
mkdir ".credentials"
touch ".credentials/gmail_credential.json"
echo "${{ secrets.GMAIL_CREDENTIALS_JSON }}" >> ".credentials/gmail_credential.json"
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: pip install nox==2022.1.7
- run: pip install poetry==1.1.13
- run: nox
env:
HOTMAIL_TEST_EMAIL: ${{ secrets.HOTMAIL_TEST_EMAIL }}
HOTMAIL_TEST_PASSWORD: ${{ secrets.HOTMAIL_TEST_PASSWORD }}
GMAIL_TEST_EMAIL: ${{ secrets.GMAIL_TEST_EMAIL }}
GMAIL_CREDENTIALS: ".credentials/gmail_credential.json"
aws_access_key_id: ${{ secrets.aws_access_key_id }}
aws_secret_access_key: ${{ secrets.aws_secret_access_key }}
aws_region_name: ${{ secrets.aws_region_name }}