diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml deleted file mode 100644 index a12393e..0000000 --- a/.github/workflows/test-and-build.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: test-and-build - -on: - push: - branches: ["**"] - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - - name: Setup python - uses: actions/setup-python@v3 - with: - python-version: 3.12.0 - - - name: Install dependencies - run: | - echo "Installing dependencies" - python -m pip install --upgrade pip - pip install -r requirements.txt - - - name: Run tests - run: | - echo "Testing..." - python -m unittest || exit 1 - #Run all test - - build: - needs: test - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - - name: Setup python - uses: actions/setup-python@v3 - with: - python-version: 3.12.0 - - - name: Install dependencies - run: | - echo "Installing dependencies" - python -m pip install --upgrade pip - pip install -r requirements.txt - - - name: Build both projects if test pass - run: | - echo "Building projects" - python3 relation_extraction/main.py - python3 concept_linking/main.py diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..14c49cc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: test + +on: + push: + branches: ["**"] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Setup python + uses: actions/setup-python@v3 + with: + python-version: 3.12.0 + + - name: Install dependencies + run: | + echo "Installing dependencies" + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + run: | + echo "Testing..." + python -m unittest || exit 1 \ No newline at end of file