Skip to content

Merge pull request #17 from JonJon565/master #27

Merge pull request #17 from JonJon565/master

Merge pull request #17 from JonJon565/master #27

Workflow file for this run

name: test
on: push
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: build
run: .\build_binary.bat
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: dearmor-lib-build
path: dearmor/Release
test:
runs-on: windows-latest
needs: build
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: setup.py
- name: Download a single artifact
uses: actions/download-artifact@v3
with:
name: dearmor-lib-build
- uses: actions/cache@v3
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-test-v03
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pip install .[test]
- name: Test
env:
TEMP_PATH: random_dir
run: pytest