From 60ce03e6543677da94261dbb603a929d40a7163d Mon Sep 17 00:00:00 2001 From: Ace Date: Sat, 3 Jun 2023 18:35:44 +0200 Subject: [PATCH] fixing actions --- .github/workflows/tests.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c348092..e92b4b7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,6 +36,18 @@ jobs: make github cd .. + - name: Setup test environment and run tests + env: + OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }} + SAMPLE_ICAL_URL: ${{ secrets.SAMPLE_ICAL_URL }} + TEST_ICAL_URL: ${{ secrets.TEST_ICAL_URL }} + TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }} + run: | + cd inkycal/tests + wget https://raw.githubusercontent.com/aceinnolab/Inkycal/assets/tests/settings.json + for f in *.py; do python3 "$f"; done + cd .. && cd .. + - name: Configure Git run: | git config --global user.name 'GitHub Actions' @@ -49,14 +61,4 @@ jobs: git add -A git commit -m "Update documentation" cd .. - git push --force --quiet --set-upstream origin main - - name: Setup test environment and run tests - env: - OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }} - SAMPLE_ICAL_URL: ${{ secrets.SAMPLE_ICAL_URL }} - TEST_ICAL_URL: ${{ secrets.TEST_ICAL_URL }} - TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }} - run: | - cd inkycal/tests - wget https://raw.githubusercontent.com/aceinnolab/Inkycal/assets/tests/settings.json - for f in *.py; do python3 "$f"; done + git push --force --quiet --set-upstream origin main \ No newline at end of file