-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (30 loc) · 990 Bytes
/
test.yml
File metadata and controls
35 lines (30 loc) · 990 Bytes
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
name: Unit Test
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
environment: Unit Test
strategy:
matrix:
python-version: [ "3.8", "3.12", "3.14" ]
steps:
- name: Checkout source code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install requirements
run: pip install -r requirements.txt && pip install -r requirements-dev.txt
- name: Unit Test
env:
API_KEY: ${{ secrets.API_KEY }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
EU_API_KEY: ${{ secrets.EU_API_KEY }}
EU_SECRET_KEY: ${{ secrets.EU_SECRET_KEY }}
run: python -m unittest discover -s ./tests -p '*_test.py'