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