Skip to content

Commit

Permalink
GHA workflow, backend only, attempt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
tijmenbaarda committed Aug 1, 2024
1 parent 3090464 commit 13860e2
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Tests

on:
workflow_dispatch:
push:
branches:
- 'develop'
- 'main'
- 'release/**'
- 'feature/ci'
pull_request:
branches:
- 'develop'
- 'main'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Download and run Blazegraph
run: |
wget https://github.com/blazegraph/database/releases/download/BLAZEGRAPH_2_1_6_RC/blazegraph.jar
java -jar blazegraph.jar &
sleep 5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install Python packages
run: |
python -m pip install --upgrade pip
pip install -r backend/requirements.txt
- name: Test with pytest
run: |
cd backend && pytest

0 comments on commit 13860e2

Please sign in to comment.