11th December 2021
Computer Science⚑
CICD⚑
(../computer_science/cicd/github_actions.md)⚑
-
New: Concurrency.
You can use
concurrency
to cancel any in-progress job or run. Example:concurrency: group: docs-${{ github.head_ref }} cancel-in-progress: true
This is useful to cancel previous jobs if new commits are pushed, which saves minutes, energy and avoids conflicts when pushing changes during the action.
Programming⚑
(../flutter_debugging.md)⚑
-
New: Debugging Flutter.
Import
dart:developer
and adddebugger();
wherever you want. Then, open your browsers developer tools and use the console.
(../computer_science/programming/python/pytest.md)⚑
-
New: Class fixture.
To run a custom function for every test in a class do:
class TestClass: @pytest.fixture(autouse=True) def setup(self): self.variable = 42 def test_something(self): ...