Skip to content

Commit

Permalink
Fix GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tkilias committed Aug 25, 2023
1 parent e30ffa9 commit a9785bf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 55 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/build.yaml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/integration_tests_with_db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:
uses: ./.github/actions/prepare_poetry_env

- name: Install Lua environment
run: nox -s install_lua_environment
run: poetry nox -s install_lua_environment

- name: Poetry install
run: nox -s run_in_dev_env poetry install
run: poetry nox -s run_in_dev_env poetry install

- name: Build language container
run: nox -s .build_language_container
run: poetry nox -s .build_language_container

- name: Start test environment
run: nox -s start_integration_test_environment
run: poetry nox -s start_integration_test_environment

- name: Run Python integration tests with db
run: ./scripts/run_in_dev_env.sh poetry run pytest tests/integration_tests/with_db
run: poetry nox -s run_python_integration_tests_with_db
7 changes: 2 additions & 5 deletions .github/workflows/integration_tests_without_db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ jobs:
- name: Setup Python & Poetry Environment
uses: ./.github/actions/prepare_poetry_env

- name: Install Lua environment
run: nox -s install_lua_environment

- name: Poetry install
run: nox -s run_in_dev_env -- poetry install
run: poetry nox -s run_in_dev_env -- poetry install

- name: Run Python integration tests without db
run: nox -s run_python_test -- ${{ matrix.test-path.path }}
run: poetry nox -s run_python_test -- ${{ matrix.test-path.path }}

8 changes: 4 additions & 4 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
uses: ./.github/actions/prepare_poetry_env

- name: Install Lua environment
run: ./scripts/install_lua_environment.sh
run: poetry nox -s install_lua_environment

- name: Poetry install
run: nox -s run_in_dev_env -- poetry install
run: poetry nox -s run_in_dev_env -- poetry install

- name: Run Lua unit tests and static code analyzer
run: nox -s run_in_dev_env -- ./scripts/lua_tests.sh
run: poetry nox -s run_in_dev_env -- ./scripts/lua_tests.sh

- name: Run Python unit tests
run: nox -s run_in_dev_env -- poetry run pytest tests/unit_tests
run: poetry nox -s run_in_dev_env -- poetry run pytest tests/unit_tests

0 comments on commit a9785bf

Please sign in to comment.