From 913d5b16e5d5ee7e9ae34f1eac2a11b6fbd997a8 Mon Sep 17 00:00:00 2001 From: levbernstein Date: Thu, 18 Nov 2021 12:45:15 -0500 Subject: [PATCH] Separates getting brawlkey from env into own step --- .github/workflows/pytest.yml | 14 +++++++++----- Bot.py | 2 +- README.MD | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index af86fb9..45537cf 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,6 +1,10 @@ # Installs dependencies, runs tests with pytest, and reports code coverage. -name: Beardless Bot +name: Beardless Bot Unit Tests + +defaults: + run: + shell: bash on: push: @@ -20,13 +24,13 @@ jobs: with: python-version: 3.9 - name: Install dependencies - shell: bash - env: - BRAWLKEY: ${{ secrets.BRAWLHALLAKEY }} run: | python -m pip install --upgrade pip - pip install pytest pip install -r resources/requirements.txt + - name: Get Brawl API key + env: + BRAWLKEY: ${{ secrets.BRAWLHALLAKEY }} + run: | echo "$BRAWLKEY" > "resources/brawlhallaKey.txt" - name: Test with pytest run: | diff --git a/Bot.py b/Bot.py index a8254b7..a3440ea 100644 --- a/Bot.py +++ b/Bot.py @@ -1,5 +1,5 @@ """ Beardless Bot """ -__version__ = "Full Release 1.6.11" +__version__ = "Full Release 1.6.12" import asyncio from random import choice, randint diff --git a/README.MD b/README.MD index 90f29aa..2d19c62 100644 --- a/README.MD +++ b/README.MD @@ -1,6 +1,6 @@ # Beardless Bot -### Full Release 1.6.11 +### Full Release 1.6.12 A Discord bot supporting gambling (coin flips and blackjack), a currency system, fun facts, and more.