-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (32 loc) · 1013 Bytes
/
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
34
35
36
37
name: Tests
on: workflow_dispatch
concurrency:
group: tests
cancel-in-progress: true
jobs:
main:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: poetry
- run: poetry install --with test
- name: Run PyTest with coverage
env:
TEST_LOGIN: ${{ secrets.TEST_LOGIN }}
TEST_PASSWORD: ${{ secrets.TEST_PASSWORD }}
TEST_STEAMID: ${{ secrets.TEST_STEAMID }}
TEST_SHARED_SECRET: ${{ secrets.TEST_SHARED_SECRET }}
TEST_IDENTITY_SECRET: ${{ secrets.TEST_IDENTITY_SECRET }}
run: poetry run pytest --cov --cov-report=xml
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}