11th December 2021
Computer Science⚑
CICD⚑
Github Actions⚑
-
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⚑
Debugging⚑
-
New: Debugging Flutter.
Import
dart:developer
and adddebugger();
wherever you want. Then, open your browsers developer tools and use the console.
pytest⚑
-
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): ...