

I’m going by 2014 rules, but what constitutes an attack is actually pretty strict. Basically, there must be an attack roll of some kind, or the rules for that action must specifically describe it as an attack, for it to actually be an attack.
https://rpg.stackexchange.com/questions/71245/what-counts-as-an-attack
Only if the roll made is an attack roll. As OP says, pouring out a flask doesn’t require an attack, nor does lighting something with a tinderbox. In fact neither of these should require any roll at all.