test split-up of jobs

This commit is contained in:
Ace
2023-01-20 00:19:21 +01:00
committed by GitHub
parent 0050f86999
commit 5e6fcc4749

View File

@@ -4,7 +4,7 @@ on: [push]
jobs: jobs:
build: build:
name: build ubuntu
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -14,10 +14,22 @@ jobs:
with: with:
python-version: 3.9 python-version: 3.9
clone-repo:
name: clone repo
needs: build
runs-on: ubuntu-latest
steps:
- name: Clone repo - name: Clone repo
run: | run: |
git clone --single-branch https://github.com/aceisace/Inkycal 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 - name: Creating virtual evvironment
run: | run: |
cd Inkycal cd Inkycal
@@ -31,6 +43,12 @@ jobs:
pip install wheel pip install wheel
pip install -e ./ pip install -e ./
test:
name: run tests
needs: install
runs-on: ubuntu-latest
steps:
- name: Setup test environment and run tests - name: Setup test environment and run tests
env: env:
OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }} OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }}