forked from GrafeasGroup/blossom
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 847 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Tests
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10.x'
- uses: snok/[email protected]
with:
virtualenvs-create: true
- name: Install Dependencies
run: |
sudo apt-get install libjpeg8 libjpeg-dev libpng-dev libpq-dev -y
poetry install
- name: Run Tests
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# the secret will not be present on any PRs from forks, so this stops
# the job from exploding
run: |
poetry run pytest --workers=auto
if [ "$COVERALLS_REPO_TOKEN" != "" ]; then
poetry run coveralls
fi