Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tbmc committed May 16, 2024
1 parent 3f0a3af commit 697ae13
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
paths-ignore:
- 'docs'
- '**.md'
pull_request:
branches:
- "main"

jobs:
build_and_publish_image:
Expand All @@ -23,22 +20,6 @@ jobs:
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Black check
run: black --check .

- name: Run Pytest
run: pytest

- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: test

on:
push:
branches:
- "main"
paths-ignore:
- 'docs'
- '**.md'
pull_request:
branches:
- "main"

jobs:
test_and_lint:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Black check
run: black --check .
- name: Run Pytest
run: pytest

0 comments on commit 697ae13

Please sign in to comment.