Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:panoptes/panoptes-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee committed Dec 28, 2021
2 parents 1c457e6 + b20034f commit 7e9cab3
Show file tree
Hide file tree
Showing 85 changed files with 3,817 additions and 6,520 deletions.
28 changes: 0 additions & 28 deletions .dockerignore

This file was deleted.

24 changes: 0 additions & 24 deletions .gcloudignore

This file was deleted.

28 changes: 15 additions & 13 deletions .github/workflows/pythontest.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Test Python

on: [ push, pull_request ]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8 ]
python-version: [ "3.10" ]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -22,26 +21,29 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=100 --statistics
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ 3.8 ]
os: [ ubuntu-latest ]
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
exclude:
- os: macos-latest
python-version: '3.8'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build panoptes-utils image
run: |
INCLUDE_BASE=true scripts/setup-local-environment.sh
- name: Test with pytest in panoptes-utils container
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install and test panoptes-utils on ${{ matrix.python-version }}
run: |
mkdir -p logs && chmod -R 777 logs
PANLOG="${PWD}/logs" SLEEP_TIME=0 scripts/testing/test-software.sh
pip install -e ".[config,images,testing,social]"
pytest
- name: Upload coverage report to codecov.io
uses: codecov/codecov-action@v1
if: success()
with:
name: codecov-upload
file: logs/coverage.xml
file: build/coverage.xml
fail_ci_if_error: true
- name: Create log file artifact
uses: actions/upload-artifact@v1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
.settings
.idea
tags
pythonenv*

# Package files
*.egg
Expand Down
10 changes: 7 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ version: 2
sphinx:
configuration: docs/conf.py

formats: all
formats: htmlzip

python:
version: 3.8
version: 3.7
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extras_requirements:
- config
- docs
- images
- social
system_packages: true
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 7e9cab3

Please sign in to comment.