From f9df40f4d6ce033d75228701ead945cc53963699 Mon Sep 17 00:00:00 2001 From: emilcode Date: Sat, 19 Apr 2025 11:01:26 +0000 Subject: [PATCH 1/3] [added] Initial draft of ci workflow running pytest in github actions --- .github/workflows/pytest.ci | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/pytest.ci diff --git a/.github/workflows/pytest.ci b/.github/workflows/pytest.ci new file mode 100644 index 0000000..7eca344 --- /dev/null +++ b/.github/workflows/pytest.ci @@ -0,0 +1,10 @@ +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Run inside Dev Container + uses: devcontainers/ci@v0.3 + with: + runCmd: pytest \ No newline at end of file From 0b9652b54a1f12a8abb8fd133608711070e32fd2 Mon Sep 17 00:00:00 2001 From: emilcode Date: Sat, 19 Apr 2025 11:10:38 +0000 Subject: [PATCH 2/3] [fixed] file ending of workflow file for ci fixed --- .github/workflows/{pytest.ci => pytest.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{pytest.ci => pytest.yml} (100%) diff --git a/.github/workflows/pytest.ci b/.github/workflows/pytest.yml similarity index 100% rename from .github/workflows/pytest.ci rename to .github/workflows/pytest.yml From 6b3427a64abc8480222ff79cb24bad8d9aa9e903 Mon Sep 17 00:00:00 2001 From: emilcode Date: Sat, 19 Apr 2025 11:17:17 +0000 Subject: [PATCH 3/3] [added] added on: key in workflow file to trigger workflow on pull requests into main --- .github/workflows/pytest.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 7eca344..74f1290 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,3 +1,12 @@ +name: Run Pytest in Dev Container +# This workflow runs Pytest inside a Dev Container + +on: + push: + branches: [main] + pull_request: + branches: [main] + jobs: test: runs-on: ubuntu-latest