-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Base version of github action with tests
- Loading branch information
Tomasz Cichocki
committed
Dec 20, 2023
1 parent
88705a9
commit 7eccd59
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: python | ||
|
||
on: | ||
push: | ||
branches: [ "feat/ci" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install deps | ||
run: | | ||
pip install -r requirements.txt | ||
pip install -r test-requirements.txt | ||
- name: Tests | ||
run: pytest tests/ | ||
env: | ||
BASIC_AUTH_USERNAME: ${{ secrets.BASIC_AUTH_USERNAME }} | ||
BASIC_AUTH_PASSWORD: ${{ secrets.BASIC_AUTH_PASSWORD }} | ||
SUBDOMAIN: ${{ secrets.SUBDOMAIN }} | ||
DOMAIN: ${{ secrets.DOMAIN }} |