-
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.
ENH: Add initial prototype for testing
- Loading branch information
Showing
6 changed files
with
58 additions
and
0 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,15 @@ | ||
name: Integration Test | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: Self test | ||
id: selftest | ||
uses: khalford/check-version-action@main | ||
with: | ||
path: "version.txt" | ||
- name: Check outputs and modified files | ||
run: | | ||
echo "${{ steps.selftest.outputs.updated }}" |
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,5 @@ | ||
FROM python:3 | ||
WORKDIR /app | ||
COPY . . | ||
RUN pip instal -r requirements.txt | ||
CMD ["main.py"] |
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,19 @@ | ||
name: 'Check Semver Version Number' | ||
description: 'Check if the semver version number has changed from the main branch.' | ||
inputs: | ||
path: | ||
required: true | ||
default: './version.txt' | ||
fail_on_check: | ||
required: true | ||
default: true | ||
comment_on_fail: | ||
required: true | ||
default: true | ||
outputs: | ||
updated: | ||
description: 'If the version was updated or not.' | ||
|
||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' |
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,18 @@ | ||
import os | ||
from pathlib import Path | ||
|
||
|
||
ROOT_PATH = Path(os.environ.get('GITHUB_WORKSPACE')) | ||
MAIN_PATH = ROOT_PATH / "main" | ||
BRANCH_PATH = ROOT_PATH / "branch" | ||
INPUT_PATH = Path(os.environ.get('INPUT_PATH')) | ||
|
||
def get_file_contents(): | ||
print(os.listdir(ROOT_PATH)) | ||
|
||
|
||
|
||
|
||
|
||
if __name__ == '__main__': | ||
get_file_contents() |
Empty file.
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 @@ | ||
0.1.0 |