Nobody studies etymology anymore. Fortunately, there is a website for that.
covenant (n.)
c. 1300, covenaunt, "mutual compact to do or not do something, a contract," from Old French covenant, convenant "agreement, pact, promise" (12c.), originally present participle of covenir "agree, meet," from Latin convenire "come together, unite; be suitable, agree," from com- "together" (see com-) + venire "to come," from a suffixed form of PIE root *gwa- "to go, come."
In law, "a promise made by deed" (late 14c.). Applied in Scripture to God's arrangements with man as a translation of Latin testamentum, Greek diatheke, both rendering Hebrew berith (though testament also is used for the same word in different places). Meaning "solemn agreement between members of a church" is from 1630s; specifically those of the Scottish Presbyterians in 1638 and 1643 (see covenanter).
covenant (v.)
"to enter into a formal agreement or contract," c. 1300, from covenant (n.). Related: Covenanted; covenanting. Also see covenanter.
https://www.etymonline.com/word/Covenant
coven (n.)
"a gathering of witches," 1660s, earlier "a meeting, gathering, assembly" (c. 1500); a variant form of covent, cuvent, from Old French covent, convent, from Latin conventus (see convent).
Covent (13c.) also meant "group of men or women in a monastery or convent." The variant form, and the association of this spelling of the word with witches, arose in Scotland but was not popularized until Sir Walter Scott used it in this sense in "Letters on Demonology and Witchcraft" (1830).
Efter that tym ther vold meit bot somtymes a Coven, somtymes mor, somtymes les; bot a Grand Meitting vold be about the end of ilk Quarter. Ther is threttein persones in ilk Coeven; and ilk on of vs has an Sprit to wait wpon ws, quhan ve pleas to call wpon him. I remember not all the Spritis names; bot thair is on called "Swein," quhilk waitis wpon the said Margret Wilson in Aulderne; he is still clothed in grass-grein …. ["Criminal Trials in Scotland," III, appendix, p.606, confession of Issobell Gowdie in Lochloy in 1662]
https://www.etymonline.com/word/coven