diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 18ffd3c..335c3af 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,7 +4,7 @@ on: [push] jobs: build: - + name: build ubuntu runs-on: ubuntu-latest steps: @@ -14,10 +14,22 @@ jobs: with: python-version: 3.9 + clone-repo: + name: clone repo + needs: build + runs-on: ubuntu-latest + + steps: - name: Clone repo run: | git clone --single-branch https://github.com/aceisace/Inkycal + install: + name: install dependencies + needs: clone-repo + runs-on: ubuntu-latest + + steps: - name: Creating virtual evvironment run: | cd Inkycal @@ -31,6 +43,12 @@ jobs: pip install wheel pip install -e ./ + test: + name: run tests + needs: install + runs-on: ubuntu-latest + + steps: - name: Setup test environment and run tests env: OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }}