Skip to content

Commit

Permalink
Update ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Sep 16, 2023
1 parent 2b422c7 commit 9070213
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 107 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/codeql.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run tests

on:
push:
branches:
- "*"
pull_request:
branches: ["master"]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- uses: snok/install-poetry@v1
with:
version: 1.6.1
virtualenvs-create: true
virtualenvs-in-project: true
- uses: actions/cache@v3
with:
path: .venv
key: venv-${{ hashFiles('poetry.lock') }}

- run: poetry install --no-interaction --no-root

- name: Run formatting check
run: |
poetry run black . --check
- name: Run unit tests
run: |
poetry run coverage run
poetry run coverage report
- name: Deploy
run: |
poetry run fab deploy
- name: Run end-to-end tests
run: |
poetry run curl -f localhost:8000
24 changes: 0 additions & 24 deletions .github/workflows/test_deploy.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/test_formatting.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/test_logic_and_coverage.yaml

This file was deleted.

0 comments on commit 9070213

Please sign in to comment.