-
Notifications
You must be signed in to change notification settings - Fork 44
40 lines (36 loc) · 1.27 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
34
35
36
37
38
39
40
name: coc.py Workflows
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
# You can use PyPy versions in python-version.
# For example, pypy2 and pypy3
matrix:
# python-version: ["3.7.13", "3.8.13", "3.9.13", "3.10"]
python-version: [3.8]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Running examples as tests
env:
DEV_SITE_EMAIL: ${{ secrets.DEV_SITE_EMAIL }}
DEV_SITE_PASSWORD: ${{ secrets.DEV_SITE_PASSWORD }}
DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}
LINKS_API_USERNAME: ${{ secrets.LINKS_API_USERNAME }}
LINKS_API_PASSWORD: ${{ secrets.LINKS_API_PASSWORD }}
RUNNING_TESTS: true
run: |
python -m examples.discord_links
python -m examples.events_example
python -m examples.war_logs