-
Notifications
You must be signed in to change notification settings - Fork 152
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
Sebastien Courroux
committed
Feb 5, 2024
1 parent
dfc8ac0
commit 000e839
Showing
2 changed files
with
39 additions
and
1 deletion.
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,38 @@ | ||
name: Build and run Python unit tests | ||
|
||
on: push | ||
permissions: | ||
contents: read | ||
jobs: | ||
test-linux: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.10' | ||
- name: Add system deps and exiftool | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libzbar0 make perl | ||
wget https://cpan.metacpan.org/authors/id/E/EX/EXIFTOOL/Image-ExifTool-12.76.tar.gz | ||
tar -xzf Image-ExifTool-12.76.tar.gz | ||
pushd Image-ExifTool-12.76/ | ||
perl Makefile.PL | ||
make test | ||
sudo make install | ||
popd | ||
- name: Add conda to system path | ||
run: | | ||
# $CONDA is an environment variable pointing to the root of the miniconda directory | ||
echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
conda env update --file micasense_conda_env.yml --name base | ||
- name: Test with pytest | ||
run: | | ||
conda install pytest | ||
pytest | ||
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