forked from cvat-ai/cvat
-
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.
CI. Move to GitHub actions. (cvat-ai#263)
* Moving to GitHub Actions
- Loading branch information
1 parent
d42ff14
commit 70e2647
Showing
3 changed files
with
59 additions
and
38 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,30 @@ | ||
name: Coverage | ||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
jobs: | ||
coverage_tests_on_python: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.6', '3.7', '3.8', '3.9'] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Installing python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Installing dependencies | ||
run: | | ||
pip install coverage tensorflow | ||
pip install -e ./ | ||
- name: Code instrumentation | ||
run: | | ||
coverage run -m unittest discover -v | ||
coverage run -a datum.py -h | ||
coverage xml | ||
- name: Sending coverage results | ||
run: | | ||
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.xml -t ${{ secrets.CODACY_PROJECT_TOKEN }} |
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: CI | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
branches: | ||
- '*' | ||
jobs: | ||
build_and_tests_on_python: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.6', '3.7', '3.8', '3.9'] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Installing python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Installing dependencies | ||
run: | | ||
pip install tensorflow | ||
pip install -e ./ | ||
- name: Unit testing | ||
run: | | ||
python -m unittest discover -v | ||
datum -h |
This file was deleted.
Oops, something went wrong.