diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index 2715676..61d80ee 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8"] + python-version: ["3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v3 @@ -16,4 +16,12 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Display Python version - run: python -c "import sys; print(sys.version)" + id: display-version + run: | + python -c "import sys; print(sys.version)" + python -c "import sys; open('python_version.txt', 'w').write(sys.version)" + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: python${{ matrix.python-version }}_artifact + path: python_version.txt