Skip to content

Commit

Permalink
setup minila ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
renefritze committed Dec 28, 2021
1 parent e88c898 commit 2dfc72e
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pip
wheel
numpy
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ jobs:
- name: Run safety checks
run: |
make check-safety
- name: Install and check requiments
run: |
poetry add $(cat .ci/requirements.txt)
check_reqs .ci/requirements.txt
23 changes: 23 additions & 0 deletions .github/workflows/git_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on: pull_request

name: Git

jobs:
message-check:
name: Block Autosquash Commits
runs-on: ubuntu-latest
steps:
- name: Block Autosquash Commits
uses: xt0rted/block-autosquash-commits-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

merge_conflict_job:
runs-on: ubuntu-latest
name: Find merge conflicts
steps:
# Checkout the source code so we have some files to look at.
- uses: actions/checkout@v2
# Run the actual merge conflict finder
- name: Merge Conflict finder
uses: olivernybroe/[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
- main

jobs:
update_release_draft:
Expand Down
4 changes: 2 additions & 2 deletions assets/images/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion check_reqs/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# type: ignore[attr-defined]
from enum import Enum
from pathlib import Path
from random import choice

import typer
from rich.console import Console
Expand Down
23 changes: 0 additions & 23 deletions tests/test_example/test_hello.py

This file was deleted.

4 changes: 4 additions & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def test_version():
import check_reqs as cr

assert cr.get_version()

0 comments on commit 2dfc72e

Please sign in to comment.