-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (52 loc) · 1.81 KB
/
build_test_ubuntu.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: build_test_uhuntu
on: [push, pull_request, workflow_dispatch]
jobs:
build_test:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '***SKIPBUILD***')"
strategy:
max-parallel: 1
matrix:
python-version: [ '3.9']
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install python pre-reqs
run: |
echo "upgrade pip"
python3 --version
python3 -m pip install --upgrade pip
shell: bash
# - id: build
# name: Build package
# run: |
# python3 setup.py bdist_wheel
# - id: wheel
# run: python3 ./.github/scripts/get_wheel_filename.py --package-file setup.py --set-gh-actions-var wheel-file
# shell: bash
# - id: install
# name: install package
# run: |
# pip install ${{ steps.wheel.outputs.wheel-file }} --index-url=https://packages.idmod.org/api/pypi/pypi-production/simple
# # todo: remove this after emodpy-malaria has a new release
# pip install emod-malaria --index-url=https://packages.idmod.org/api/pypi/pypi-production/simple --force-reinstall --no-cache-dir
# pip freeze
- name: installation
run: |
pip install -e . -r requirements.txt
pip freeze
- name: run tests
run: python3 -m unittest discover .
working-directory: ./tests
# - name: Add wheel to artifact
# uses: actions/upload-artifact@v2
# with:
# name: idm_test.wheel
# path: ${{ steps.wheel.outputs.wheel-file }}