Skip to content

Commit

Permalink
use reuseable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Jan 26, 2024
1 parent af36fc6 commit 3e87b07
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,11 @@ name: CI pipeline for India Forecast App
on: push

jobs:
lint_and_test:
name: Lint the code and run the tests
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry==1.7.1

- name: Install python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'poetry'

- name: Install python dependencies
run: poetry install

- name: Lint
run: make lint

- name: Run the tests
run: poetry run pytest --cov=india_forecast_app --cov-report=xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
poetry-python-test:
uses: openclimatefix/.github/.github/workflows/poetry-python-test.yml
with:
pytest_cov_dir: india_forecast_app

release:
needs: [lint_and_test]
Expand Down

0 comments on commit 3e87b07

Please sign in to comment.