-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0144970
commit 5cce46c
Showing
8 changed files
with
44 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pip | ||
wheel | ||
pytest | ||
typer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,16 @@ name: build | |
|
||
on: [push, pull_request] | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.9"] | ||
|
||
env: | ||
# cache busting if requirements haven't changed | ||
CACHE_EPOCH: 0 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
@@ -23,7 +26,7 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: .venv | ||
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }} | ||
key: venv-${{ env.CACHE_EPOCH }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }} | ||
- name: Install dependencies | ||
run: | | ||
poetry config virtualenvs.in-project true | ||
|
@@ -40,3 +43,8 @@ jobs: | |
- name: Run safety checks | ||
run: | | ||
make check-safety | ||
- name: Check self requirements | ||
run: | | ||
poetry run pip install -r requirements.txt | ||
poetry run check_reqs requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |