-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1988 from doccano/enhancement/testInstallation
Add workflow to test installation and commands
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 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,32 @@ | ||
name: Test installation and doccano commands | ||
|
||
on: | ||
schedule: | ||
- cron: "15 22 * * *" | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
python-version: ["3.8", "3.9", "3.10"] | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Enabling JSON1 extension on SQLite | ||
if: ${{ startsWith(matrix.os, 'windows') && matrix.python-version == '3.8' }} | ||
shell: bash | ||
run: | | ||
export VERSION=`python -V | cut -f2 -d " "` | ||
curl -LO https://www.sqlite.org/2022/sqlite-dll-win64-x64-3390300.zip | ||
unzip sqlite-dll-win64-x64-3390300.zip | ||
mv sqlite3.dll /c/hostedtoolcache/windows/Python/$VERSION/x64/DLLs/ | ||
- name: Test installation | ||
run: pip install doccano | ||
- name: Test doccano init command | ||
run: doccano init | ||
- name: Test doccano createuser command | ||
run: doccano createuser --username admin --password pass |