-
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.
- Loading branch information
1 parent
593e27a
commit 616c792
Showing
1 changed file
with
29 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,29 @@ | ||
name: Build & Test | ||
|
||
on: [push, fork] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.9', '3.10', '3.11', '3.12'] | ||
steps: | ||
- name: Chechout code | ||
uses: actions/[email protected] | ||
- name: Setup python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install and test application | ||
env: | ||
pythonversion: ${{ matrix.python-version }} | ||
run: | | ||
python -c "import sys; print(sys.version)" | ||
pip install .[test] | ||
echo Finished successful build with Python $pythonversion | ||
# - name: Test with pytest | ||
# run: | | ||
# pytest -v tests -m "not postgres_db and not mssql_db" | ||
# pytest -v tests -m postgres_db | ||
# pytest -v tests -m mssql_db |