diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03495fe..94b72f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,13 +17,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16, 18, 20] + node-version: [20, 22] defaults: run: working-directory: ./frontend steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: "npm" @@ -34,7 +34,7 @@ jobs: - run: npm run test:unit:ci # todo: these e2e tests are not generating coverage reports on CI: - run: DEBUG=cypress:* npm run test:e2e:ci - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./frontend/coverage/coverage-final.json @@ -46,13 +46,13 @@ jobs: name: "Backend :: Python ${{ matrix.python-version }}" strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] defaults: run: working-directory: ./backend steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - run: pip install -e .[tests] @@ -61,7 +61,7 @@ jobs: openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -sha256 -days 365 -nodes -subj '/CN=localhost' sample_flow_server --help timeout 5 sample_flow_server || [ "$?" -eq 124 ] - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./backend/coverage.xml @@ -72,9 +72,9 @@ jobs: runs-on: ubuntu-latest name: "Docker" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: echo "VITE_REST_API_LOCATION=https://circuitseq.iwr.uni-heidelberg.de/api" > frontend/.env - - run: docker-compose build + - run: docker compose build - uses: docker/login-action@v2 with: registry: ghcr.io @@ -83,15 +83,15 @@ jobs: if: github.event_name == 'push' && github.ref == 'refs/heads/main' - run: | echo $SAMPLE_FLOW_DOCKER_IMAGE_TAG - docker-compose build - docker-compose push + docker compose build + docker compose push if: github.event_name == 'push' && github.ref == 'refs/heads/main' env: SAMPLE_FLOW_DOCKER_IMAGE_TAG: ${{ github.sha }} - run: | echo $SAMPLE_FLOW_DOCKER_IMAGE_TAG - docker-compose build - docker-compose push + docker compose build + docker compose push if: github.event_name == 'push' && github.ref == 'refs/heads/main' env: SAMPLE_FLOW_DOCKER_IMAGE_TAG: "latest" diff --git a/frontend/src/utils/api-client.ts b/frontend/src/utils/api-client.ts index 4fa3911..383c5d8 100644 --- a/frontend/src/utils/api-client.ts +++ b/frontend/src/utils/api-client.ts @@ -23,9 +23,6 @@ function download_file_from_endpoint( ) { apiClient .post(endpoint, json, { - headers: { - "Content-Type": "multipart/form-data", - }, responseType: "blob", }) .then((response) => {