From 26d95e5efba2d64daa13dbe7c7e2c7122671f043 Mon Sep 17 00:00:00 2001 From: Justyna Gruba Date: Wed, 29 Jan 2025 09:29:59 +0100 Subject: [PATCH 1/4] tests fixed. --- techradar/radars/tests/test_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/techradar/radars/tests/test_views.py b/techradar/radars/tests/test_views.py index 8a6470a..aff4788 100644 --- a/techradar/radars/tests/test_views.py +++ b/techradar/radars/tests/test_views.py @@ -14,8 +14,8 @@ def test_get_radar_list(self, api_client): assert response.status_code == status.HTTP_200_OK assert response.json() == [ - {"label": "Frontend", "slug": "frontend"}, - {"label": "Backend", "slug": "backend"}, + {"label": "Frontend", "slug": "frontend", "color": "#FF0000"}, + {"label": "Backend", "slug": "backend", "color": "#FF0000"}, ] def test_get_proper_radar(self, api_client): From e394d1a2bd2d986ee6079b48a83186b1e8a2bef7 Mon Sep 17 00:00:00 2001 From: Justyna Gruba Date: Wed, 29 Jan 2025 08:40:00 +0100 Subject: [PATCH 2/4] github actions demo added --- .github/workflows/github-actions-demo.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/github-actions-demo.yml diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 0000000..15a61d6 --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,18 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." From 752b52ad60cdb2db30b83fe53f37249e75061e1c Mon Sep 17 00:00:00 2001 From: Justyna Gruba Date: Wed, 29 Jan 2025 09:01:04 +0100 Subject: [PATCH 3/4] Test added to github actions --- .github/workflows/github-actions-demo.yml | 18 ------------------ .github/workflows/tests.yaml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/github-actions-demo.yml create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml deleted file mode 100644 index 15a61d6..0000000 --- a/.github/workflows/github-actions-demo.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: GitHub Actions Demo -run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 -on: [push] -jobs: - Explore-GitHub-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..5e61a21 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,15 @@ +name: Tests +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - use: actions/setup-python@v5 + with: + python-version: 3.13.0 + - run: python -m pip install --upgrade pip + - run: pip install -r requirements.txt + - run: pytest + - run: echo "🍏 This job's status is ${{ job.status }}." From 2b60ca3386f353f2e1a0fea12ba7aac837fe445b Mon Sep 17 00:00:00 2001 From: Justyna Gruba Date: Wed, 29 Jan 2025 09:02:22 +0100 Subject: [PATCH 4/4] Typo --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 5e61a21..27d633a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - use: actions/setup-python@v5 + - uses: actions/setup-python@v5 with: python-version: 3.13.0 - run: python -m pip install --upgrade pip